Versions in this module Expand all Collapse all v0 v0.2.0 Oct 13, 2026 v0.1.0 Oct 13, 2026 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 BindingFunc func(context.Context, *ent.BindingMutation) (ent.Value, error) + func (f BindingFunc) 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 ConnectionFunc func(context.Context, *ent.ConnectionMutation) (ent.Value, error) + func (f ConnectionFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type CredentialFunc func(context.Context, *ent.CredentialMutation) (ent.Value, error) + func (f CredentialFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type GrantFunc func(context.Context, *ent.GrantMutation) (ent.Value, error) + func (f GrantFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type LeaseFunc func(context.Context, *ent.LeaseMutation) (ent.Value, error) + func (f LeaseFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error)