Documentation
¶
Index ¶
- Variables
- func Cancel(ctx context.Context)
- func GetHandlerName(handler Handler) string
- func NewManager() *manager
- func Publish(ctx context.Context, topic string, message interface{}) error
- func Subscribe(ctx context.Context, topic string, handler Handler)
- func WithCancel(ctx context.Context) context.Context
- func WithManager(ctx context.Context, manager Manager) context.Context
- type Handler
- type HandlerFunc
- type Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpectedMessageType = errors.New("unexpected message type")
Functions ¶
func GetHandlerName ¶
func NewManager ¶
func NewManager() *manager
Types ¶
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.