MCPcopy Create free account
hub / github.com/DoNewsCode/core / Dispatch

Method Dispatch

contract/event.go:7–7  ·  view source on GitHub ↗
(ctx context.Context, topic interface{}, payload interface{})

Source from the content-addressed store, hash-verified

5// Dispatcher is the event registry that is able to send payload to each listener.
6type Dispatcher interface {
7 Dispatch(ctx context.Context, topic interface{}, payload interface{}) error
8 Subscribe(listener Listener)
9}
10

Callers 5

httpServeMethod · 0.65
grpcServeMethod · 0.65
CampaignMethod · 0.65
ResignMethod · 0.65
ReloadMethod · 0.65

Implementers 1

SyncDispatcherevents/dispatcher.go

Calls

no outgoing calls

Tested by

no test coverage detected