Versions in this module Expand all Collapse all v0 v0.0.2 Nov 3, 2023 v0.0.1 Nov 3, 2023 Changes in this version + var Create = Op + var Delete = Op + var Update = Op + type Actions interface + Create func(context.Context, ...Arg) (Arg, error) + Delete func(context.Context, ...Arg) (Arg, error) + Update func(context.Context, ...Arg) (Arg, error) + type Arg interface + type Event struct + Kind Kind + Obj interface{} + OldObj interface{} + Op Op + func EventFromArg(arg Arg) Event + type Kind string + type Op struct + func (op *Op) String() string + type Registry struct + func (r *Registry) Create(ctx context.Context, kind Kind, args ...Arg) (Arg, error) + func (r *Registry) Delete(ctx context.Context, kind Kind, args ...Arg) (Arg, error) + func (r *Registry) Do(ctx context.Context, kind Kind, op Op, args ...Arg) (Arg, error) + func (r *Registry) Get(kind Kind) (Actions, error) + func (r *Registry) MustRegister(kind Kind, a Actions) + func (r *Registry) Register(kind Kind, a Actions) error + func (r *Registry) Update(ctx context.Context, kind Kind, args ...Arg) (Arg, error)