custom_set_scopes

package
v0.0.0-...-5ca518f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetScopesModule

type SetScopesModule struct {
	Value  uint64   `mapstructure:"value"`
	Scopes []string `mapstructure:"scopes"`
	Logger *zap.Logger
}

SetScopesModule is a simple module that has access to the GraphQL operation and adds custom scopes to the response

func (*SetScopesModule) Middleware

func (m *SetScopesModule) Middleware(ctx core.RequestContext, next http.Handler)

func (*SetScopesModule) Module

func (m *SetScopesModule) Module() core.ModuleInfo

Jump to

Keyboard shortcuts

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