Documentation ¶
Index ¶
- func AddHandler(handler HandlerFunc)
- func AddListener(handler HandlerFunc)
- func Dispatch(ctx context.Context, msgs ...Msg) error
- func GetCallCount(msg Msg) int
- func MustDispatch(ctx context.Context, msgs ...Msg)
- func Publish(ctx context.Context, msgs ...Msg)
- func Register(svc Service)
- func Reset()
- type HandlerFunc
- type Msg
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶
func AddHandler(handler HandlerFunc)
func AddListener ¶
func AddListener(handler HandlerFunc)
func GetCallCount ¶ added in v0.20.0
GetCallCount returns the number of times a handler has been called Only available during unit tests
func MustDispatch ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc any
Click to show internal directories.
Click to hide internal directories.