Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2020 Changes in this version + func Username(ctx context.Context) (name string) + type Casbin struct + func Instance() *Casbin + func (c *Casbin) Check(ctx context.Context) (ok bool) + func (c *Casbin) CheckReq(r *http.Request) (ok bool) + func (c *Casbin) Enabled() bool + func (c *Casbin) Enforcer() *casbin.Enforcer + func (c *Casbin) RegisterTo(app *iris.Application, optionalEnforcer *casbin.Enforcer) + func (c *Casbin) ServeHTTP(ctx context.Context) + func (c *Casbin) Wrapper() func(w http.ResponseWriter, r *http.Request, router http.HandlerFunc)