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

Function SetDefaultPubSub

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

SetDefaultPubSub sets pubsub used by the package to ps.

(ps PubSub)

Source from the content-addressed store, hash-verified

32
33// SetDefaultPubSub sets pubsub used by the package to ps.
34func SetDefaultPubSub(ps PubSub) {
35 defaultPubSub = ps
36}
37
38// DefaultPubSub returns the default PubSub.
39func DefaultPubSub() PubSub {

Callers 5

ExampleFunction · 0.92
ExampleFunction · 0.92
ExampleFunction · 0.92
initFunction · 0.92
InitializeEventsFunction · 0.92

Calls

no outgoing calls

Tested by 3

ExampleFunction · 0.74
ExampleFunction · 0.74
ExampleFunction · 0.74