command

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 8 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, 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)

Jump to

Keyboard shortcuts

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