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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadCommand = errors.New("command: cannot handle command")
)

Functions

This section is empty.

Types

type Command

type Command interface{}

type Handler

type Handler interface {
	Handle(ctx context.Context, cmd Command) error
}

func NewAPIKeyCommandHandler

func NewAPIKeyCommandHandler(
	editor *eventproto.Editor,
	apiKey *domain.APIKey,
	p publisher.Publisher,
	environmentNamespace string,
) Handler

func NewAccountV2CommandHandler added in v0.4.0

func NewAccountV2CommandHandler(
	editor *eventproto.Editor,
	account *domain.AccountV2,
	p publisher.Publisher,
	organizationID string,
) Handler

Jump to

Keyboard shortcuts

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