Documentation ¶
Index ¶
Constants ¶
View Source
const (
IssueAggregateType eventstore.AggregateType = "issue"
)
Variables ¶
This section is empty.
Functions ¶
func GetIssueObjectID ¶
Types ¶
type IssueAggregate ¶
type IssueAggregate struct { *eventstore.CommonTenantIdAggregate Issue *model.Issue }
func LoadIssueAggregate ¶
func LoadIssueAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string) (*IssueAggregate, error)
func NewIssueAggregateWithTenantAndID ¶
func NewIssueAggregateWithTenantAndID(tenant, id string) *IssueAggregate
func (*IssueAggregate) HandleCommand ¶
func (a *IssueAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
func (*IssueAggregate) When ¶
func (a *IssueAggregate) When(evt eventstore.Event) error
Click to show internal directories.
Click to hide internal directories.