Versions in this module Expand all Collapse all v1 v1.5.0 Oct 24, 2022 Changes in this version + 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 CardFunc func(context.Context, *ent.CardMutation) (ent.Value, error) + func (f CardFunc) 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 CommentFunc func(context.Context, *ent.CommentMutation) (ent.Value, error) + func (f CommentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + 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 FieldTypeFunc func(context.Context, *ent.FieldTypeMutation) (ent.Value, error) + func (f FieldTypeFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type FileFunc func(context.Context, *ent.FileMutation) (ent.Value, error) + func (f FileFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type FileTypeFunc func(context.Context, *ent.FileTypeMutation) (ent.Value, error) + func (f FileTypeFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type GroupFunc func(context.Context, *ent.GroupMutation) (ent.Value, error) + func (f GroupFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type GroupInfoFunc func(context.Context, *ent.GroupInfoMutation) (ent.Value, error) + func (f GroupInfoFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type ItemFunc func(context.Context, *ent.ItemMutation) (ent.Value, error) + func (f ItemFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type NodeFunc func(context.Context, *ent.NodeMutation) (ent.Value, error) + func (f NodeFunc) 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 SpecFunc func(context.Context, *ent.SpecMutation) (ent.Value, error) + func (f SpecFunc) 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)