Versions in this module Expand all Collapse all v0 v0.0.2 Nov 9, 2022 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 AttachmentFunc func(context.Context, *ent.AttachmentMutation) (ent.Value, error) + func (f AttachmentFunc) 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 MultiWordSchemaFunc func(context.Context, *ent.MultiWordSchemaMutation) (ent.Value, error) + func (f MultiWordSchemaFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type NilExampleFunc func(context.Context, *ent.NilExampleMutation) (ent.Value, error) + func (f NilExampleFunc) 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 PonyFunc func(context.Context, *ent.PonyMutation) (ent.Value, error) + func (f PonyFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type SkipEdgeExampleFunc func(context.Context, *ent.SkipEdgeExampleMutation) (ent.Value, error) + func (f SkipEdgeExampleFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type TodoFunc func(context.Context, *ent.TodoMutation) (ent.Value, error) + func (f TodoFunc) 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)