domain

package
v0.0.0-...-bec0fbe Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectionBalance string = "ProjectionBalance"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceRepository

type BalanceRepository interface {
	GetAllOrderByOwnerAsc(ctx context.Context) ([]entity.Balance, error)
	CreateAccount(ctx context.Context, balance entity.Balance) error
	GetByID(ctx context.Context, aggregateID uuid.UUID) (entity.Balance, error)
	Update(ctx context.Context, balance entity.Balance) error
}

type BalanceService

type BalanceService interface {
	GetOne(ctx context.Context, id uuid.UUID) (entity.Balance, error)
	ListAll(ctx context.Context) ([]entity.Balance, error)
}

type EventHandler

type EventHandler interface {
	Handle(ctx context.Context, e eventsourcing.Event) error
}

type LastIDs

type LastIDs struct {
	DbEventID   string
	MqEventID   string
	MqMessageID []byte
}

type Metadata

type Metadata struct {
	EventID     eventid.EventID
	AggregateID uuid.UUID
	ResumeKey   projection.ResumeKey
	ResumeToken projection.Token
}

Directories

Path Synopsis
Code generated by gog; DO NOT EDIT.
Code generated by gog; DO NOT EDIT.

Jump to

Keyboard shortcuts

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