command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAdminUser

type CreateAdminUser struct {
	User *domain.User
}

type CreateAdminUserHandler

type CreateAdminUserHandler struct {
	// contains filtered or unexported fields
}

func NewCreateAdminUserHandler

func NewCreateAdminUserHandler(repo domain.UserRepository) CreateAdminUserHandler

func (CreateAdminUserHandler) Execute

type CreateEvent

type CreateEvent struct {
	Event domain.Event
	Token domain.TokenValue
}

type CreateEventHandler

type CreateEventHandler struct {
	// contains filtered or unexported fields
}

func NewCreateEventHandler

func NewCreateEventHandler(repo domain.EventRepository) CreateEventHandler

func (CreateEventHandler) Execute

func (c CreateEventHandler) Execute(ctx context.Context, cmd CreateEvent) error

type CreateEventType

type CreateEventType struct {
	EventType domain.EventType
}

type CreateEventTypeHandler

type CreateEventTypeHandler struct {
	// contains filtered or unexported fields
}

func (CreateEventTypeHandler) Execute

type CreateEventTypeVersion

type CreateEventTypeVersion struct {
	Action      string
	TargetTypes []string
	Schema      domain.Schema
}

type CreateEventTypeVersionHandler

type CreateEventTypeVersionHandler struct {
	// contains filtered or unexported fields
}

func NewCreateEventTypeVersionHandler

func NewCreateEventTypeVersionHandler(txProvider TransactionProvider) CreateEventTypeVersionHandler

func (CreateEventTypeVersionHandler) Execute

type CreateSource

type CreateSource struct {
	Source *domain.Source
}

type CreateSourceHandler

type CreateSourceHandler struct {
	// contains filtered or unexported fields
}

func NewCreateSourceHandler

func NewCreateSourceHandler(repo domain.SourceRepository) CreateSourceHandler

func (CreateSourceHandler) Execute

type CreateToken

type CreateToken struct {
	Token *domain.Token
}

type CreateTokenHandler

type CreateTokenHandler struct {
	// contains filtered or unexported fields
}

func NewCreateTokenHandler

func NewCreateTokenHandler(repo domain.TokenRepository) CreateTokenHandler

func (CreateTokenHandler) Execute

func (c CreateTokenHandler) Execute(ctx context.Context, cmd CreateToken) error

type DeleteEventType

type DeleteEventType struct {
	Action string
}

type DeleteEventTypeHandler

type DeleteEventTypeHandler struct {
	// contains filtered or unexported fields
}

func (DeleteEventTypeHandler) Execute

type DeleteToken

type DeleteToken struct {
	TokenID  domain.ID
	SourceID domain.ID
}

type DeleteTokenHandler

type DeleteTokenHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteTokenHandler

func NewDeleteTokenHandler(repo domain.TokenRepository) DeleteTokenHandler

func (DeleteTokenHandler) Execute

func (c DeleteTokenHandler) Execute(ctx context.Context, cmd DeleteToken) error

type LogIn

type LogIn struct {
	Email             domain.Email
	PlainTextPassword string
}

type LogInHandler

type LogInHandler struct {
	// contains filtered or unexported fields
}

func NewLogInHandler

func NewLogInHandler(repo domain.UserRepository, privateJwtKey *ecdsa.PrivateKey) LogInHandler

func (LogInHandler) Execute

func (c LogInHandler) Execute(ctx context.Context, cmd LogIn) (string, error)

type RollbackEventTypeVersion

type RollbackEventTypeVersion struct {
	Action string
}

type RollbackEventTypeVersionHandler

type RollbackEventTypeVersionHandler struct {
	// contains filtered or unexported fields
}

func (RollbackEventTypeVersionHandler) Execute

type TransactFunc

type TransactFunc func(adapter TransactionAdapters) error

type TransactionAdapters

type TransactionAdapters struct {
	EventTypeRepository domain.EventTypeRepository
}

type TransactionProvider

type TransactionProvider interface {
	Transact(ctx context.Context, f TransactFunc) error
}

Jump to

Keyboard shortcuts

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