aggregate

package
v0.0.0-...-9ffb102 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ContractAggregateType eventstore.AggregateType = "contract"
)

Variables

This section is empty.

Functions

func GetContractObjectID

func GetContractObjectID(aggregateID, tenant string) string

Types

type ContractAggregate

type ContractAggregate struct {
	*eventstore.CommonTenantIdAggregate
	Contract *model.Contract
}

func NewContractAggregateWithTenantAndID

func NewContractAggregateWithTenantAndID(tenant, id string) *ContractAggregate

func (*ContractAggregate) HandleGRPCRequest

func (a *ContractAggregate) HandleGRPCRequest(ctx context.Context, request any, params map[string]any) (any, error)

func (*ContractAggregate) When

func (a *ContractAggregate) When(evt eventstore.Event) error

type ContractTempAggregate

type ContractTempAggregate struct {
	*eventstore.CommonTenantIdTempAggregate
}

func NewContractTempAggregateWithTenantAndID

func NewContractTempAggregateWithTenantAndID(tenant, id string) *ContractTempAggregate

func (*ContractTempAggregate) HandleGRPCRequest

func (a *ContractTempAggregate) HandleGRPCRequest(ctx context.Context, request any, params map[string]any) (any, error)

Jump to

Keyboard shortcuts

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