MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / NewEncoder

Method NewEncoder

pkg/jsonpb/ttn.go:110–112  ·  view source on GitHub ↗

NewEncoder returns a new JSON encoder that writes values to w.

(w io.Writer)

Source from the content-addressed store, hash-verified

108
109// NewEncoder returns a new JSON encoder that writes values to w.
110func (m *TTNMarshaler) NewEncoder(w io.Writer) runtime.Encoder {
111 return &TTNEncoder{w: w, inner: m.JSONPb}
112}
113
114// TTNEncoder marshals values to JSON and writes them to an io.Writer.
115type TTNEncoder struct {

Callers 15

TestHMACHashFunction · 0.80
writeResponseFunction · 0.80
handleClaimMethod · 0.80
handleBatchClaimsMethod · 0.80
EncodeDownlinkMethod · 0.80
TokenMethod · 0.80
TestExtensionsFunction · 0.80
handleMethod · 0.80
writeErrorFunction · 0.80
TestGetAppSKeyFunction · 0.80
TestHandleJoinRequestFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestHMACHashFunction · 0.64
writeResponseFunction · 0.64
handleClaimMethod · 0.64
handleBatchClaimsMethod · 0.64
TestExtensionsFunction · 0.64
TestGetAppSKeyFunction · 0.64
TestHandleJoinRequestFunction · 0.64
TestJoinServerRaceFunction · 0.64
TestTokenFunction · 0.64
TestClientFunction · 0.64