Documentation ¶
Index ¶
- func ContextAuthApply() func(context.Context) context.Context
- func ContextAuthConsumer(handler func(graphql.ResolveParams, interface{}) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
- func ContextAuthIsAdmin(handler func(graphql.ResolveParams) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
- func ContextPubSubApply(value interface{}) func(context.Context) context.Context
- func ContextPubSubConsumer(handler func(interface{}) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
- func ContextRepoApply(model mongodb.Repo) func(context.Context) context.Context
- func ContextRepoConsumer(handler func(graphql.ResolveParams, mongodb.Repo) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
- func ContextUserApply(user User) func(context.Context) context.Context
- func ContextUserScopesValidator(scopes []string, handler func(graphql.ResolveParams) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
- func ValidateJWT(t string, secret string) (interface{}, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextAuthApply ¶
ContextUserApply consume the user from graphql context
func ContextAuthConsumer ¶
func ContextAuthConsumer(handler func(graphql.ResolveParams, interface{}) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
ContextUserScopesValidator consume the user from graphql context
/ scopes []string,
func ContextAuthIsAdmin ¶
func ContextAuthIsAdmin(handler func(graphql.ResolveParams) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
func ContextPubSubApply ¶
ContextRepoApply apply the model to graphql context
func ContextPubSubConsumer ¶
func ContextPubSubConsumer(handler func(interface{}) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
ContextRepoConsumer consume the model from graphql context
func ContextRepoApply ¶
ContextRepoApply apply the model to graphql context
func ContextRepoConsumer ¶
func ContextRepoConsumer(handler func(graphql.ResolveParams, mongodb.Repo) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
ContextRepoConsumer consume the model from graphql context
func ContextUserApply ¶
ContextUserApply consume the user from graphql context
func ContextUserScopesValidator ¶
func ContextUserScopesValidator(scopes []string, handler func(graphql.ResolveParams) (interface{}, error)) func(graphql.ResolveParams) (interface{}, error)
ContextUserScopesValidator consume the user from graphql context
func ValidateJWT ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.