Versions in this module Expand all Collapse all v0 v0.11.4 Jan 7, 2023 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 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 FriendshipFunc func(context.Context, *ent.FriendshipMutation) (ent.Value, error) + func (f FriendshipFunc) 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 GroupTagFunc func(context.Context, *ent.GroupTagMutation) (ent.Value, error) + func (f GroupTagFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type RelationshipFunc func(context.Context, *ent.RelationshipMutation) (ent.Value, error) + func (f RelationshipFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type RelationshipInfoFunc func(context.Context, *ent.RelationshipInfoMutation) (ent.Value, error) + func (f RelationshipInfoFunc) 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 RoleUserFunc func(context.Context, *ent.RoleUserMutation) (ent.Value, error) + func (f RoleUserFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type TagFunc func(context.Context, *ent.TagMutation) (ent.Value, error) + func (f TagFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type TweetFunc func(context.Context, *ent.TweetMutation) (ent.Value, error) + func (f TweetFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type TweetLikeFunc func(context.Context, *ent.TweetLikeMutation) (ent.Value, error) + func (f TweetLikeFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type TweetTagFunc func(context.Context, *ent.TweetTagMutation) (ent.Value, error) + func (f TweetTagFunc) 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) + type UserGroupFunc func(context.Context, *ent.UserGroupMutation) (ent.Value, error) + func (f UserGroupFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type UserTweetFunc func(context.Context, *ent.UserTweetMutation) (ent.Value, error) + func (f UserTweetFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error)