Documentation ¶
Index ¶
- type Command
- type Handler
- func NewAdminSubscriptionCommandHandler(editor *eventproto.Editor, subscription *domain.Subscription) (Handler, error)
- func NewEmptyAdminSubscriptionCommandHandler() Handler
- func NewEmptySubscriptionCommandHandler() Handler
- func NewSubscriptionCommandHandler(editor *eventproto.Editor, subscription *domain.Subscription, ...) (Handler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Handle(ctx context.Context, cmd Command) error Events() []*eventproto.Event }
func NewAdminSubscriptionCommandHandler ¶
func NewAdminSubscriptionCommandHandler( editor *eventproto.Editor, subscription *domain.Subscription, ) (Handler, error)
func NewEmptyAdminSubscriptionCommandHandler ¶
func NewEmptyAdminSubscriptionCommandHandler() Handler
for unit test
func NewEmptySubscriptionCommandHandler ¶
func NewEmptySubscriptionCommandHandler() Handler
for unit test
func NewSubscriptionCommandHandler ¶
func NewSubscriptionCommandHandler( editor *eventproto.Editor, subscription *domain.Subscription, environmentId string, ) (Handler, error)
Click to show internal directories.
Click to hide internal directories.