Versions in this module Expand all Collapse all v1 v1.3.3 Jan 24, 2024 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 APIFunc func(context.Context, *ent.APIMutation) (ent.Value, error) + func (f APIFunc) 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 DepartmentFunc func(context.Context, *ent.DepartmentMutation) (ent.Value, error) + func (f DepartmentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type DictionaryDetailFunc func(context.Context, *ent.DictionaryDetailMutation) (ent.Value, error) + func (f DictionaryDetailFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type DictionaryFunc func(context.Context, *ent.DictionaryMutation) (ent.Value, error) + func (f DictionaryFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type MenuFunc func(context.Context, *ent.MenuMutation) (ent.Value, error) + func (f MenuFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OauthProviderFunc func(context.Context, *ent.OauthProviderMutation) (ent.Value, error) + func (f OauthProviderFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type PositionFunc func(context.Context, *ent.PositionMutation) (ent.Value, error) + func (f PositionFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type RoleFunc func(context.Context, *ent.RoleMutation) (ent.Value, error) + func (f RoleFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type TokenFunc func(context.Context, *ent.TokenMutation) (ent.Value, error) + func (f TokenFunc) 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)