Documentation
¶
Index ¶
- func Action(v string) (string, string)
- func Auth(v bool) (string, bool)
- func Permission(v bool) (string, bool)
- func Resource(v string) (string, string)
- type ApiRegister
- type Checker
- func (c *Checker) Check(r *restful.Request, w *restful.Response, chain *restful.FilterChain)
- func (c *Checker) CheckPolicy(r *restful.Request, tk *token.Token, route *endpoint.RouteEntry) error
- func (c *Checker) CheckToken(r *restful.Request) (*token.Token, error)
- func (c *Checker) Init() error
- func (c *Checker) Name() string
- func (c *Checker) Priority() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Permission ¶
Types ¶
type ApiRegister ¶
type ApiRegister struct {
ioc.ObjectImpl
// contains filtered or unexported fields
}
func (*ApiRegister) Init ¶
func (a *ApiRegister) Init() error
func (*ApiRegister) Name ¶
func (a *ApiRegister) Name() string
func (*ApiRegister) Priority ¶
func (a *ApiRegister) Priority() int
Priority 这个 Init 一定要放在所有路由都添加完成之后运行
Click to show internal directories.
Click to hide internal directories.