package
0.0.0-20240406232500-6a612345b654
Repository: https://github.com/kayprogrammer/socialnet-v4.git
Documentation: pkg.go.dev

# Functions

And groups conditions with the AND operator.
FixedError is a hook returning a fixed error.
HasAddedFields is a condition validating `.AddedField` on fields.
HasClearedFields is a condition validating `.FieldCleared` on fields.
HasFields is a condition validating `.Field` on fields.
HasOp is a condition testing mutation operation.
If executes the given hook under condition.
NewChain creates a new chain of hooks.
Not negates a given condition.
On executes the given hook only for the given operation.
Or groups conditions with the OR operator.
Reject returns a hook that rejects all operations that match op.
Unless skips the given hook only for the given operation.

# Structs

Chain acts as a list of hooks and is effectively immutable.

# Type aliases

The ChatFunc type is an adapter to allow the use of ordinary function as Chat mutator.
The CityFunc type is an adapter to allow the use of ordinary function as City mutator.
The CommentFunc type is an adapter to allow the use of ordinary function as Comment mutator.
Condition is a hook condition function.
The CountryFunc type is an adapter to allow the use of ordinary function as Country mutator.
The FileFunc type is an adapter to allow the use of ordinary function as File mutator.
The FriendFunc type is an adapter to allow the use of ordinary function as Friend mutator.
The MessageFunc type is an adapter to allow the use of ordinary function as Message mutator.
The NotificationFunc type is an adapter to allow the use of ordinary function as Notification mutator.
The OtpFunc type is an adapter to allow the use of ordinary function as Otp mutator.
The PostFunc type is an adapter to allow the use of ordinary function as Post mutator.
The ReactionFunc type is an adapter to allow the use of ordinary function as Reaction mutator.
The RegionFunc type is an adapter to allow the use of ordinary function as Region mutator.
The ReplyFunc type is an adapter to allow the use of ordinary function as Reply mutator.
The SiteDetailFunc type is an adapter to allow the use of ordinary function as SiteDetail mutator.
The UserFunc type is an adapter to allow the use of ordinary function as User mutator.