MCPcopy
hub / github.com/dunglas/mercure / TransportSubscribers

Interface TransportSubscribers

transport.go:36–39  ·  view source on GitHub ↗

TransportSubscribers provides a method to retrieve the list of active subscribers.

Source from the content-addressed store, hash-verified

34
35// TransportSubscribers provides a method to retrieve the list of active subscribers.
36type TransportSubscribers interface {
37 // GetSubscribers gets the last event ID and the list of active subscribers at this time.
38 GetSubscribers(ctx context.Context) (string, []*Subscriber, error)
39}
40
41// TransportTopicSelectorStore provides a method to pass the TopicSelectorStore to the transport.
42type TransportTopicSelectorStore interface {

Callers 7

TestBoltGetSubscribersFunction · 0.65
TestBoltLastEventIDFunction · 0.65
initSubscriptionMethod · 0.65
TestSubscriptionsHandlerFunction · 0.65
TestSubscriptionHandlerFunction · 0.65
TestSubscriptionEventsFunction · 0.65

Implementers 3

Calls

no outgoing calls

Tested by

no test coverage detected