web

package
Version: v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawTokenExtraction

func RawTokenExtraction(c *gin.Context)

func RegisterRoleChecking

func RegisterRoleChecking(roles []string) func(ctx *gin.Context)

Types

type EndpointDeclaration

type EndpointDeclaration interface {
	Apply(target *gin.RouterGroup)
}

type GroupDeclaration

type GroupDeclaration struct {
	// contains filtered or unexported fields
}

func WebRegistration

func WebRegistration() *GroupDeclaration

func (*GroupDeclaration) Apply

func (g *GroupDeclaration) Apply(target *gin.RouterGroup)

func (*GroupDeclaration) RegisterEndpoint

func (g *GroupDeclaration) RegisterEndpoint(method string, roles []string, handlers ...gin.HandlerFunc)

func (*GroupDeclaration) RegisterEndpointPath

func (g *GroupDeclaration) RegisterEndpointPath(method string, relativePath string, roles []string, handlers ...gin.HandlerFunc)

func (*GroupDeclaration) RegisterGeneric

func (g *GroupDeclaration) RegisterGeneric(reg func(group *gin.RouterGroup))

func (*GroupDeclaration) RegisterGroup

func (g *GroupDeclaration) RegisterGroup(relativePath string, roles []string) *GroupDeclaration

func (*GroupDeclaration) Use

func (g *GroupDeclaration) Use(handlers ...gin.HandlerFunc)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL