Documentation
¶
Index ¶
- type Context
- func (ctx *Context) ApplicationID() string
- func (ctx Context) Deadline() (deadline time.Time, ok bool)
- func (ctx Context) Done() <-chan struct{}
- func (ctx Context) Err() error
- func (ctx *Context) GetEmail() string
- func (ctx *Context) GetPermission() authlib.Permission
- func (ctx *Context) GetRoles() authlib.Roles
- func (ctx *Context) GetUserUID() (uid string)
- func (ctx *Context) Set(key, val interface{})
- func (ctx Context) Value(key interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) ApplicationID ¶
GetApplicationID returns the id of the application
func (Context) Done ¶
func (ctx Context) Done() <-chan struct{}
Done is added to implement the interface
func (*Context) GetPermission ¶
func (ctx *Context) GetPermission() authlib.Permission
GetRoles returns the permissions of the current user
func (*Context) GetUserUID ¶
GetUserUID returns the UID of the current user
Click to show internal directories.
Click to hide internal directories.