Documentation ¶
Index ¶
- func InjectWebCheckRight(s *WebCheckRight)
- func LoadWebCheckRight() baseiface.ISingleton
- func RegisterIrpc(irpc webiface.IrpcCheckAllowed, maxDepth ...string)
- func RegisterMiddlewares(middlewares ...gin.HandlerFunc)
- type WebCheckRight
- func (wcr *WebCheckRight) AnonymousSessionToken() gin.HandlerFunc
- func (wcr *WebCheckRight) CheckAllowed() gin.HandlerFunc
- func (wcr *WebCheckRight) CheckSessionToken() gin.HandlerFunc
- func (wcr *WebCheckRight) CheckSetToken(c *gin.Context) (int, error)
- func (wcr *WebCheckRight) CheckedFilter(c *gin.Context) bool
- func (wcr *WebCheckRight) FindWebMiddlewares() []gin.HandlerFunc
- func (wcr *WebCheckRight) GetSessionToken(c *gin.Context) (int, *webdto.WebUserId, error)
- func (wcr *WebCheckRight) IfExistTokenReturn(c *gin.Context) bool
- func (wcr *WebCheckRight) Info() string
- func (wcr *WebCheckRight) Init()
- func (wcr *WebCheckRight) InitCtx(c *gin.Context) *WebCheckRight
- func (wcr *WebCheckRight) InitDisabled(c *gin.Context) *WebCheckRight
- func (wcr *WebCheckRight) RegisterCheckedFilter(pathRoute string)
- func (wcr *WebCheckRight) RegisterCheckedRes(pathRoute string, res string)
- func (wcr *WebCheckRight) RegisterIrpc(irpc webiface.IrpcCheckAllowed, maxDepth ...string)
- func (wcr *WebCheckRight) RegisterMiddlewareDemo()
- func (wcr *WebCheckRight) RegisterMiddlewares(middlewares ...gin.HandlerFunc)
- func (wcr *WebCheckRight) RouteFullPath(c *gin.Context) string
- func (wcr *WebCheckRight) RpcGetUserId(c *gin.Context) *webdto.WebUserId
- func (wcr *WebCheckRight) RpcSetUserId(ctx *gin.Context)
- func (wcr *WebCheckRight) ShowUrlPath(c *gin.Context)
- func (wcr *WebCheckRight) StoreCheckedDbRes(router *gin.Engine)
- func (wcr *WebCheckRight) StoreCheckedRes(router *gin.Engine)
- func (wcr *WebCheckRight) TrimRoutePath(routePath string) string
- func (wcr *WebCheckRight) WebCheckAllowed(ctx *gin.Context)
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 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 (*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)
Click to show internal directories.
Click to hide internal directories.