Proto is a Codec for proto/snappy
| 17 | |
| 18 | // Proto is a Codec for proto/snappy |
| 19 | type Proto struct { |
| 20 | id string |
| 21 | factory func() proto.Message |
| 22 | } |
| 23 | |
| 24 | func NewProtoCodec(id string, factory func() proto.Message) Proto { |
| 25 | return Proto{id: id, factory: factory} |
nothing calls this directly
no outgoing calls
no test coverage detected