Versions in this module Expand all Collapse all v0 v0.0.2 Apr 13, 2023 v0.0.1 Apr 13, 2023 Changes in this version + func FixedError(err error) cycle.Hook + func If(hk cycle.Hook, cond Condition) cycle.Hook + func On(hk cycle.Hook, op cycle.Op) cycle.Hook + func Reject(op cycle.Op) cycle.Hook + func Unless(hk cycle.Hook, op cycle.Op) cycle.Hook + type Chain struct + func NewChain(hooks ...cycle.Hook) Chain + func (c Chain) Append(hooks ...cycle.Hook) Chain + func (c Chain) Extend(chain Chain) Chain + func (c Chain) Hook() cycle.Hook + type Condition func(context.Context, cycle.Mutation) bool + func And(first, second Condition, rest ...Condition) Condition + func HasAddedFields(field string, fields ...string) Condition + func HasClearedFields(field string, fields ...string) Condition + func HasFields(field string, fields ...string) Condition + func HasOp(op cycle.Op) Condition + func Not(cond Condition) Condition + func Or(first, second Condition, rest ...Condition) Condition + type UserFunc func(context.Context, *cycle.UserMutation) (cycle.Value, error) + func (f UserFunc) Mutate(ctx context.Context, m cycle.Mutation) (cycle.Value, error)