Home
last modified time | relevance | path

Searched refs:packetV1 (Results 1 – 4 of 4) sorted by relevance

/dports/net-im/dendrite/dendrite-0.5.1/vendor/gopkg.in/macaroon.v2/
H A Dpacket-v1.go36 type packetV1 struct { struct
50 func parsePacketV1(data []byte) (packetV1, error) {
52 return packetV1{}, fmt.Errorf("packet too short")
56 return packetV1{}, fmt.Errorf("cannot parse size")
59 return packetV1{}, fmt.Errorf("packet size too big")
62 return packetV1{}, fmt.Errorf("packet size too small")
67 return packetV1{}, fmt.Errorf("cannot parse field name")
71 return packetV1{}, fmt.Errorf("no terminating newline found")
73 return packetV1{
H A Dpacket-v1_test.go32 expect packetV1
38 expect: packetV1{
54 expect: packetV1{
71 c.Assert(p, packetEquals, packetV1{})
H A Dmarshal-v1.go146 func expectPacketV1(data []byte, kind string) (packetV1, error) {
149 return packetV1{}, err
152 return packetV1{}, fmt.Errorf("unexpected field %q; expected %s", field, kind)
H A Dpacket-v2_test.go10 var packetEquals = qt.CmpEquals(cmp.AllowUnexported(packetV1{}, packetV2{}))