command

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface{}

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

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,
	environmentNamespace string) Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL