Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidType = errors.New("invalid event type") ErrInvalidData = errors.New("invalid event data") )
Functions ¶
This section is empty.
Types ¶
type DecodeInputFunc ¶
DecodeInputFunc extracts a user-domain input object from an event. It's designed to be used in event handlers, for subscriber-side endpoints.
type HandlerSet ¶
type HandlerSet struct {
// contains filtered or unexported fields
}
func NewHandlerSet ¶
func NewHandlerSet() *HandlerSet
func (*HandlerSet) Add ¶
func (hs *HandlerSet) Add(typ string, handler Handler)
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber wraps an endpoint and implements Handler.
func NewSubscriber ¶
func NewSubscriber(e endpoint.Endpoint, dec DecodeInputFunc) *Subscriber
NewSubscriber constructs a new subscriber, which implements Handler and wraps the provided endpoint.
Click to show internal directories.
Click to hide internal directories.