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

Function HandlerFunc

pkg/events/handler.go:34–36  ·  view source on GitHub ↗

HandlerFunc makes the func implement the Handler interface.

(handler func(Event))

Source from the content-addressed store, hash-verified

32
33// HandlerFunc makes the func implement the Handler interface.
34func HandlerFunc(handler func(Event)) Handler {
35 return &handlerFunc{handler}
36}
37
38// Channel is a channel of Events that can be used as an event handler.
39// The channel should be buffered, events will be dropped if the channel blocks.

Callers 2

ExampleHandlerFuncFunction · 0.92
ExampleFunction · 0.92

Calls

no outgoing calls

Tested by 2

ExampleHandlerFuncFunction · 0.74
ExampleFunction · 0.74