Versions in this module Expand all Collapse all v0 v0.6.1 Feb 16, 2021 Changes in this version + func FixedError(err error) ent.Hook + func If(hk ent.Hook, cond Condition) ent.Hook + func On(hk ent.Hook, op ent.Op) ent.Hook + func Reject(op ent.Op) ent.Hook + func Unless(hk ent.Hook, op ent.Op) ent.Hook + type BlobFunc func(context.Context, *ent.BlobMutation) (ent.Value, error) + func (f BlobFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type CarFunc func(context.Context, *ent.CarMutation) (ent.Value, error) + func (f CarFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type Chain struct + func NewChain(hooks ...ent.Hook) Chain + func (c Chain) Append(hooks ...ent.Hook) Chain + func (c Chain) Extend(chain Chain) Chain + func (c Chain) Hook() ent.Hook + type Condition func(context.Context, ent.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 ent.Op) Condition + func Not(cond Condition) Condition + func Or(first, second Condition, rest ...Condition) Condition + type GroupFunc func(context.Context, *ent.GroupMutation) (ent.Value, error) + func (f GroupFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type MixinIDFunc func(context.Context, *ent.MixinIDMutation) (ent.Value, error) + func (f MixinIDFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type PetFunc func(context.Context, *ent.PetMutation) (ent.Value, error) + func (f PetFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type UserFunc func(context.Context, *ent.UserMutation) (ent.Value, error) + func (f UserFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error)