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

Function Example

pkg/events/basic/pubsub_test.go:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func Example() {
29 basicPubSub := basic.NewPubSub()
30
31 // Replace the default pubsub so that we will now publish to this pub sub by default.
32 events.SetDefaultPubSub(basicPubSub)
33}
34
35var timeout = (1 << 10) * test.Delay
36

Callers

nothing calls this directly

Calls 2

NewPubSubFunction · 0.92
SetDefaultPubSubFunction · 0.92

Tested by

no test coverage detected