MCPcopy
hub / github.com/benbjohnson/wtf / Subscription

Struct Subscription

inmem/event.go:113–119  ·  view source on GitHub ↗

Subscription represents a stream of user-related events.

Source from the content-addressed store, hash-verified

111
112// Subscription represents a stream of user-related events.
113type Subscription struct {
114 service *EventService // service subscription was created from
115 userID int // subscribed user
116
117 c chan wtf.Event // channel of events
118 once sync.Once // ensures c only closed once
119}
120
121// Close disconnects the subscription from the service it was created from.
122func (s *Subscription) Close() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected