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

Method Decode

enc.go:34–34  ·  view source on GitHub ↗
(subject string, data []byte, vPtr any)

Source from the content-addressed store, hash-verified

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

Callers 5

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