Documentation
¶
Index ¶
- func Auth(v bool) (string, bool)
- func Permission(v bool) (string, bool)
- func Required(roles ...string) (string, []string)
- type Checker
- func (c *Checker) Check(r *restful.Request, w *restful.Response, next *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 Checker ¶
type Checker struct { ioc.ObjectImpl // contains filtered or unexported fields }
func (*Checker) Check ¶
func (c *Checker) Check(r *restful.Request, w *restful.Response, next *restful.FilterChain)
func (*Checker) CheckPolicy ¶
Click to show internal directories.
Click to hide internal directories.