Back to godoc.org

Package web

v1.1.0
Latest Go to latest

The latest major version is .

Published: Sep 25, 2020 | License: Apache-2.0 | Module: bitbucket.org/TIKI-Institut/ai-common-go

Index

func RawTokenExtraction

func RawTokenExtraction(c *gin.Context)

func RegisterRoleChecking

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

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier