Documentation ¶
Index ¶
- func DenyPlanetSelfLinkRule() privacy.MutationRule
- func DenyUpdateRule() privacy.MutationRule
- func FilterIrregularGalaxyRule() privacy.QueryRule
- func FilterZeroAgePlanetRule() privacy.QueryRule
- func LogPlanetMutationHook() ent.Hook
- func SetMutationLogFunc(f func(string, ...interface{})) func(string, ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DenyPlanetSelfLinkRule ¶
func DenyPlanetSelfLinkRule() privacy.MutationRule
DenyPlanetSelfLinkRule is a mutation rule rule that prevents rule self link via neighbor edge.
func DenyUpdateRule ¶
func DenyUpdateRule() privacy.MutationRule
DenyUpdateRule is a mutation rule that denies update many operations.
func FilterIrregularGalaxyRule ¶ added in v0.1.5
FilterIrregularGalaxyRule is a query rule that filters out irregular galaxies.
func FilterZeroAgePlanetRule ¶ added in v0.1.5
FilterZeroPlanetAgeRule is a query rule that filters out planet with age equal to zero.
func LogPlanetMutationHook ¶
LogPlanetMutationHook returns a hook logging planet mutations.
func SetMutationLogFunc ¶
SetMutationLogFunc overrides the logging function used by LogPlanetMutationHook.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.