Documentation ¶
Index ¶
Constants ¶
View Source
const ( AggregateType = "restrictions" AggregateVersion = "v1" )
View Source
const (
SetEventType = eventTypePrefix + "set"
)
Variables ¶
View Source
var SetEventMapper = eventstore.GenericEventMapper[SetEvent]
Functions ¶
This section is empty.
Types ¶
type RestrictionsChange ¶
type RestrictionsChange func(*SetEvent)
func ChangeAllowedLanguages ¶
func ChangeAllowedLanguages(allowedLanguages []language.Tag) RestrictionsChange
func ChangeDisallowPublicOrgRegistration ¶
func ChangeDisallowPublicOrgRegistration(disallow bool) RestrictionsChange
type SetEvent ¶
type SetEvent struct { *eventstore.BaseEvent `json:"-"` DisallowPublicOrgRegistration *bool `json:"disallowPublicOrgRegistration,omitempty"` AllowedLanguages *[]language.Tag `json:"allowedLanguages,omitempty"` }
SetEvent describes that restrictions are added or modified and contains only changed properties
func NewSetEvent ¶
func NewSetEvent( base *eventstore.BaseEvent, changes ...RestrictionsChange, ) *SetEvent
func (*SetEvent) SetBaseEvent ¶
func (e *SetEvent) SetBaseEvent(b *eventstore.BaseEvent)
func (*SetEvent) UniqueConstraints ¶
func (e *SetEvent) UniqueConstraints() []*eventstore.UniqueConstraint
Click to show internal directories.
Click to hide internal directories.