package
0.0.0-20200724171720-bf847f167ce2
Repository: https://github.com/cristhoperdev/go-graphql-entc.git
Documentation: pkg.go.dev

# Functions

Allowf returns an formatted wrapped Allow decision.
AlwaysAllowRule returns a rule that returns an allow decision.
AlwaysDenyRule returns a rule that returns a deny decision.
ContextQueryMutationRule creates a query/mutation rule from a context eval func.
DecisionContext creates a decision context.
Denyf returns an formatted wrapped Deny decision.
DenyMutationOperationRule returns a rule denying specified mutation operation.
OnMutationOperation evaluates the given rule only on a given mutation operation.
Skipf returns an formatted wrapped Skip decision.

# Variables

Allow may be returned by rules to indicate that the policy evaluation should terminate with an allow decision.
Deny may be returned by rules to indicate that the policy evaluation should terminate with an deny decision.
Skip may be returned by rules to indicate that the policy evaluation should continue to the next rule.

# Structs

Policy groups query and mutation policies.

# Interfaces

No description provided by the author
QueryMutationRule is the interface that groups query and mutation rules.
No description provided by the author

# Type aliases

The AuthorMutationRuleFunc type is an adapter to allow the use of ordinary functions as a mutation rule.
The AuthorQueryRuleFunc type is an adapter to allow the use of ordinary functions as a query rule.
The FilmMutationRuleFunc type is an adapter to allow the use of ordinary functions as a mutation rule.
The FilmQueryRuleFunc type is an adapter to allow the use of ordinary functions as a query rule.
No description provided by the author
MutationRuleFunc type is an adapter to allow the use of ordinary functions as mutation rules.
No description provided by the author
QueryRuleFunc type is an adapter to allow the use of ordinary functions as query rules.