aggregate

package
v0.0.0-...-e64b967 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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 {
	*aggregate.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 {
	*aggregate.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