webcheck

package
v1.0.1-rel-01 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectWebCheckRight

func InjectWebCheckRight(s *WebCheckRight)

func LoadWebCheckRight

func LoadWebCheckRight() baseiface.ISingleton

func RegisterIrpc

func RegisterIrpc(irpc webiface.IrpcCheckAllowed, maxDepth ...string)

func RegisterMiddlewares

func RegisterMiddlewares(middlewares ...gin.HandlerFunc)

Types

type WebCheckRight

type WebCheckRight struct {
	*webdto.WebContext
	webiface.IrpcCheckAllowed `json:"-"`
}

func FindBeanWebCheckRight

func FindBeanWebCheckRight() *WebCheckRight

FindBeanWebCheckRight

func NewWebCheckRight

func NewWebCheckRight() *WebCheckRight

func (*WebCheckRight) AnonymousSessionToken

func (wcr *WebCheckRight) AnonymousSessionToken() gin.HandlerFunc

匿名访问+登录访问 token

func (*WebCheckRight) CheckAllowed

func (wcr *WebCheckRight) CheckAllowed() gin.HandlerFunc

checked middleware

func (*WebCheckRight) CheckSessionToken

func (wcr *WebCheckRight) CheckSessionToken() gin.HandlerFunc

checked middleware

func (*WebCheckRight) CheckSetToken

func (wcr *WebCheckRight) CheckSetToken(c *gin.Context) (int, error)

func (*WebCheckRight) CheckedFilter

func (wcr *WebCheckRight) CheckedFilter(c *gin.Context) bool

func (*WebCheckRight) FindWebMiddlewares

func (wcr *WebCheckRight) FindWebMiddlewares() []gin.HandlerFunc

获取中间件

func (*WebCheckRight) GetSessionToken

func (wcr *WebCheckRight) GetSessionToken(c *gin.Context) (int, *webdto.WebUserId, error)

func (*WebCheckRight) IfExistTokenReturn

func (wcr *WebCheckRight) IfExistTokenReturn(c *gin.Context) bool

func (*WebCheckRight) Info

func (wcr *WebCheckRight) Info() string

func (*WebCheckRight) Init

func (wcr *WebCheckRight) Init()

func (*WebCheckRight) InitCtx

func (wcr *WebCheckRight) InitCtx(c *gin.Context) *WebCheckRight

func (*WebCheckRight) InitDisabled

func (wcr *WebCheckRight) InitDisabled(c *gin.Context) *WebCheckRight

func (*WebCheckRight) RegisterCheckedFilter

func (wcr *WebCheckRight) RegisterCheckedFilter(pathRoute string)

注册放通接口之路由

func (*WebCheckRight) RegisterCheckedRes

func (wcr *WebCheckRight) RegisterCheckedRes(pathRoute string, res string)

注册资源接口列表

func (*WebCheckRight) RegisterIrpc

func (wcr *WebCheckRight) RegisterIrpc(irpc webiface.IrpcCheckAllowed, maxDepth ...string)

func (*WebCheckRight) RegisterMiddlewareDemo

func (wcr *WebCheckRight) RegisterMiddlewareDemo()

注入DEMO中间件

func (*WebCheckRight) RegisterMiddlewares

func (wcr *WebCheckRight) RegisterMiddlewares(middlewares ...gin.HandlerFunc)

注入中间件

func (*WebCheckRight) RouteFullPath

func (wcr *WebCheckRight) RouteFullPath(c *gin.Context) string

func (*WebCheckRight) RpcGetUserId

func (wcr *WebCheckRight) RpcGetUserId(c *gin.Context) *webdto.WebUserId

func (*WebCheckRight) RpcSetUserId

func (wcr *WebCheckRight) RpcSetUserId(ctx *gin.Context)

func (*WebCheckRight) ShowUrlPath

func (wcr *WebCheckRight) ShowUrlPath(c *gin.Context)

func (*WebCheckRight) StoreCheckedDbRes

func (wcr *WebCheckRight) StoreCheckedDbRes(router *gin.Engine)

func (*WebCheckRight) StoreCheckedRes

func (wcr *WebCheckRight) StoreCheckedRes(router *gin.Engine)

func (*WebCheckRight) TrimRoutePath

func (wcr *WebCheckRight) TrimRoutePath(routePath string) string

func (*WebCheckRight) WebCheckAllowed

func (wcr *WebCheckRight) WebCheckAllowed(ctx *gin.Context)

Directories

Path Synopsis
Package mock_webiface is a generated GoMock package.
Package mock_webiface is a generated GoMock package.

Jump to

Keyboard shortcuts

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