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

Function Fields

pkg/log/fields.go:31–35  ·  view source on GitHub ↗

Fields returns a new immutable fields structure.

(pairs ...any)

Source from the content-addressed store, hash-verified

29
30// Fields returns a new immutable fields structure.
31func Fields(pairs ...any) *F {
32 return &F{
33 nodes: pairsToMap(pairs...),
34 }
35}
36
37// F is a Fielder that uses structural sharing to avoid copying entries.
38// Setting a key is O(1), getting a key is O(n) (where n is the number of entries),

Callers 15

makeReadTaskFunction · 0.92
SendMethod · 0.92
SendMethod · 0.92
ClaimMethod · 0.92
ClaimMethod · 0.92
UnclaimMethod · 0.92
GetClaimStatusMethod · 0.92
BatchUnclaimMethod · 0.92
publishUplinkMethod · 0.92
forwarderPublisherMethod · 0.92
subscribeDownlinkMethod · 0.92

Calls 1

pairsToMapFunction · 0.85

Tested by 5

TestGetLoggerFunction · 0.74
TestLogInterfaceFunction · 0.68
TestContextFunction · 0.68
TestFieldsFunction · 0.68
TestLoggerFunction · 0.68