MCPcopy
hub / github.com/nats-io/nats.go / ProtobufEncoder

Struct ProtobufEncoder

encoders/protobuf/protobuf_enc.go:40–42  ·  view source on GitHub ↗

ProtobufEncoder is a protobuf implementation for EncodedConn This encoder will use the builtin protobuf lib to Marshal and Unmarshal structs. Deprecated: Encoded connections are no longer supported.

Source from the content-addressed store, hash-verified

38//
39// Deprecated: Encoded connections are no longer supported.
40type ProtobufEncoder struct {
41 // Empty
42}
43
44var (
45 ErrInvalidProtoMsgEncode = errors.New("nats: Invalid protobuf proto.Message object passed to encode")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected