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 D | packet-v1.go | 36 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 D | packet-v1_test.go | 32 expect packetV1 38 expect: packetV1{ 54 expect: packetV1{ 71 c.Assert(p, packetEquals, packetV1{})
|
H A D | marshal-v1.go | 146 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 D | packet-v2_test.go | 10 var packetEquals = qt.CmpEquals(cmp.AllowUnexported(packetV1{}, packetV2{}))
|