Documentation
¶
Index ¶
- func Action(v string) (string, string)
- func Auth(v bool) (string, bool)
- func Permission(v bool) (string, bool)
- func Required(roles ...string) (string, []string)
- func Resource(v string) (string, string)
- type ApiRegister
- 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 ApiRegister ¶ added in v0.0.10
type ApiRegister struct { ioc.ObjectImpl // contains filtered or unexported fields }
func GetApiRegister ¶ added in v0.0.10
func GetApiRegister() *ApiRegister
func (*ApiRegister) Init ¶ added in v0.0.10
func (a *ApiRegister) Init() error
func (*ApiRegister) Name ¶ added in v0.0.10
func (c *ApiRegister) Name() string
func (*ApiRegister) Priority ¶ added in v0.0.10
func (i *ApiRegister) Priority() int
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.