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

Function New

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

New creates a new Handler that stores the entries in memory.

()

Source from the content-addressed store, hash-verified

29
30// New creates a new Handler that stores the entries in memory.
31func New() *Handler {
32 return &Handler{
33 Entries: make([]log.Entry, 0),
34 }
35}
36
37// HandleLog implements log.Handler.
38func (h *Handler) HandleLog(entry log.Entry) error {

Callers 5

TestNewRPCServerFunction · 0.92
TestLoggerFunction · 0.92
TestNamespaceFunction · 0.92
TestLoggerFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestNewRPCServerFunction · 0.74
TestLoggerFunction · 0.74
TestNamespaceFunction · 0.74
TestLoggerFunction · 0.74