Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHasRole ¶
func NewHasRole(accountServiceClient eitan.AccountServiceClient) func(ctx context.Context, obj interface{}, next graphql.Resolver, role model.Role) (res interface{}, err error)
NewHasRole returns a function to authenticate user based on role role is defined at defs/graphql/schema.graphql
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.