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

Interface Encoder

enc.go:32–35  ·  enc.go::Encoder

lint:file-ignore SA1019 Ignore deprecation warnings for EncodedConn Encoder interface is for all register encoders Deprecated: Encoded connections are no longer supported.

Source from the content-addressed store, hash-verified

30//
31// Deprecated: Encoded connections are no longer supported.
32type Encoder interface {
33 Encode(subject string, v any) ([]byte, error)
34 Decode(subject string, data []byte, vPtr any) error
35}
36
37var encMap map[string]Encoder
38var encLock sync.Mutex

Callers 12

EncodeMethod · 0.95
PublishMethod · 0.65
PublishRequestMethod · 0.65
RequestMethod · 0.65
RequestWithContextMethod · 0.65
TestAuthExpiredReconnectFunction · 0.65
bindRecvChanMethod · 0.65
RequestMethod · 0.65
subscribeMethod · 0.65
RequestWithContextMethod · 0.65
DecodeMethod · 0.65

Implementers 4

ProtobufEncoderencoders/protobuf/protobuf_enc.go
DefaultEncoderencoders/builtin/default_enc.go
JsonEncoderencoders/builtin/json_enc.go
GobEncoderencoders/builtin/gob_enc.go

Calls

no outgoing calls

Tested by

no test coverage detected