Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventActionMap = map[EventAction]string{ UnknownAction: "UNKNOWN", CreateAction: "CREATE", UpdateAction: "UPDATE", HardDeleteAction: "HARD_DELETE", SoftDeleteAction: "SOFT_DELETE", }
View Source
var EventActionMapStr = map[string]EventAction{ "UNKNOWN": UnknownAction, "CREATE": CreateAction, "UPDATE": UpdateAction, "HARD_DELETE": HardDeleteAction, "SOFT_DELETE": SoftDeleteAction, }
View Source
var (
Validate *validator.Validate
)
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func (*Aggregate) PullEvents ¶
func (*Aggregate) PushEvents ¶
type BasicService ¶
type BasicService[T any] interface { Create(ctx context.Context, args any) error Update(ctx context.Context, args any) error Delete(ctx context.Context, id string) error GetByID(ctx context.Context, id string) (T, error) List(ctx context.Context, cr storage.Criteria) ([]T, storage.PageToken, error) }
type EventAction ¶
type EventAction int
const ( UnknownAction EventAction = iota CreateAction UpdateAction HardDeleteAction SoftDeleteAction )
func (EventAction) String ¶
func (e EventAction) String() string
Click to show internal directories.
Click to hide internal directories.