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

Method Close

pkg/events/cloud/cloud.go:69–80  ·  view source on GitHub ↗

Close the Go Cloud publisher.

(ctx context.Context)

Source from the content-addressed store, hash-verified

67
68// Close the Go Cloud publisher.
69func (ps *PubSub) Close(ctx context.Context) error {
70 if err := ps.topic.Shutdown(ps.ctx); err != nil {
71 return err
72 }
73 ps.cancel()
74 select {
75 case <-ctx.Done():
76 return ctx.Err()
77 case <-ps.ctx.Done():
78 return ps.ctx.Err()
79 }
80}
81
82func (ps *PubSub) subscribeTask(ctx context.Context) error {
83 if ps.subURL == "" {

Callers 1

TestCloudPubSubFunction · 0.95

Implementers 15

mockPubSubStorepkg/console/internal/events/subscripti
routerForwarderServerpkg/packetbrokeragent/mock/pbdataplane
routerHomeNetworkServerpkg/packetbrokeragent/mock/pbdataplane
noopPubSubpkg/events/default.go
PubSubpkg/events/cloud/cloud.go
multiplexerpkg/events/mux/mux.go
ephemeralPubSubpkg/events/mux/mux_test.go
PubSubpkg/events/basic/pubsub.go
PubSubpkg/events/redis/redis.go
ApplicationServerpkg/applicationserver/applicationserve
pubSubDistributorpkg/applicationserver/distribution/pub
subscriptionSetpkg/applicationserver/distribution/sub

Calls 3

DoneMethod · 0.80
ShutdownMethod · 0.65
ErrMethod · 0.45

Tested by 1

TestCloudPubSubFunction · 0.76