aggregate

package
v0.0.0-...-9073f78 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ServiceLineItemAggregateType eventstore.AggregateType = "service_line_item"
)

Variables

This section is empty.

Functions

func GetServiceLineItemObjectID

func GetServiceLineItemObjectID(aggregateID string, tenant string) string

GetServiceLineItemObjectID generates the object ID for a service line item.

Types

type ServiceLineItemAggregate

type ServiceLineItemAggregate struct {
	*eventstore.CommonTenantIdAggregate
	ServiceLineItem *model.ServiceLineItem
}

func NewServiceLineItemAggregateWithTenantAndID

func NewServiceLineItemAggregateWithTenantAndID(tenant, id string) *ServiceLineItemAggregate

func (*ServiceLineItemAggregate) CloseServiceLineItem

func (*ServiceLineItemAggregate) CreateServiceLineItem

func (*ServiceLineItemAggregate) DeleteServiceLineItem

func (*ServiceLineItemAggregate) HandleGRPCRequest

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

func (*ServiceLineItemAggregate) PauseServiceLineItem

func (*ServiceLineItemAggregate) ResumeServiceLineItem

func (*ServiceLineItemAggregate) UpdateServiceLineItem

func (*ServiceLineItemAggregate) When

Jump to

Keyboard shortcuts

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