Versions in this module Expand all Collapse all v0 v0.4.2 Aug 12, 2019 v0.4.1 Aug 12, 2019 Changes in this version + var Create = Op + var Delete = Op + var Update = Op + type Actions interface + Create func(...Arg) (Arg, error) + Delete func(...Arg) (Arg, error) + Update func(...Arg) (Arg, error) + type Arg interface + type Kind string + type Op struct + func (op *Op) String() string + type Registry struct + func (r *Registry) Create(kind Kind, args ...Arg) (Arg, error) + func (r *Registry) Delete(kind Kind, args ...Arg) (Arg, error) + func (r *Registry) Do(kind Kind, op Op, args ...Arg) (Arg, error) + func (r *Registry) Get(kind Kind) (Actions, error) + func (r *Registry) Register(kind Kind, a Actions) error + func (r *Registry) Update(kind Kind, args ...Arg) (Arg, error)