rule

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func FilterIrregularGalaxyRule() privacy.QueryRule

FilterIrregularGalaxyRule is a query rule that filters out irregular galaxies.

func FilterZeroAgePlanetRule added in v0.1.5

func FilterZeroAgePlanetRule() privacy.QueryRule

FilterZeroPlanetAgeRule is a query rule that filters out planet with age equal to zero.

func LogPlanetMutationHook

func LogPlanetMutationHook() ent.Hook

LogPlanetMutationHook returns a hook logging planet mutations.

func SetMutationLogFunc

func SetMutationLogFunc(f func(string, ...interface{})) func(string, ...interface{})

SetMutationLogFunc overrides the logging function used by LogPlanetMutationHook.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL