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

Struct PubSub

pkg/events/cloud/cloud.go:56–66  ·  view source on GitHub ↗

PubSub with Go Cloud backend.

Source from the content-addressed store, hash-verified

54
55// PubSub with Go Cloud backend.
56type PubSub struct {
57 events.PubSub
58
59 taskStarter task.Starter
60 ctx context.Context
61 cancel context.CancelFunc
62 contentType string
63 subURL string
64 topic *pubsub.Topic
65 subOnce sync.Once
66}
67
68// Close the Go Cloud publisher.
69func (ps *PubSub) Close(ctx context.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected