Documentation ¶
Index ¶
- type CheckTokenWareMiddleware
- func (m *CheckTokenWareMiddleware) Auth(ctx context.Context, w http.ResponseWriter, strToken string, strIP string, ...) (*ctxs.UserCtx, error)
- func (m *CheckTokenWareMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
- func (m *CheckTokenWareMiddleware) OpenAuth(r *http.Request, token string) (*ctxs.UserCtx, error)
- func (m *CheckTokenWareMiddleware) OperationLogRecord(next http.HandlerFunc, w http.ResponseWriter, r *http.Request, ...)
- func (m *CheckTokenWareMiddleware) UserAuth(w http.ResponseWriter, r *http.Request) (*ctxs.UserCtx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckTokenWareMiddleware ¶
type CheckTokenWareMiddleware struct { UserRpc user.UserManage AuthRpc role.RoleManage TenantRpc tenant.TenantManage LogRpc operLog.Log }
func NewCheckTokenWareMiddleware ¶
func NewCheckTokenWareMiddleware(UserRpc user.UserManage, AuthRpc role.RoleManage, TenantRpc tenant.TenantManage, LogRpc operLog.Log) *CheckTokenWareMiddleware
func (*CheckTokenWareMiddleware) Handle ¶
func (m *CheckTokenWareMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
func (*CheckTokenWareMiddleware) OperationLogRecord ¶
func (m *CheckTokenWareMiddleware) OperationLogRecord(next http.HandlerFunc, w http.ResponseWriter, r *http.Request, apiInfo *sys.RoleApiAuthResp)
接口操作日志记录
func (*CheckTokenWareMiddleware) UserAuth ¶
func (m *CheckTokenWareMiddleware) UserAuth(w http.ResponseWriter, r *http.Request) (*ctxs.UserCtx, error)
Click to show internal directories.
Click to hide internal directories.