Documentation ¶
Index ¶
Constants ¶
View Source
const UserValueToken = "UserToken"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthBearer ¶
type AuthBearer struct {
// contains filtered or unexported fields
}
func NewAuthBearer ¶
func NewAuthBearer(tokens Tokens) *AuthBearer
func (*AuthBearer) AdminAuth ¶
func (a *AuthBearer) AdminAuth(ctx *fasthttp.RequestCtx) bool
func (*AuthBearer) Auth ¶
func (a *AuthBearer) Auth(ctx *fasthttp.RequestCtx) bool
func (*AuthBearer) GetToken ¶
func (a *AuthBearer) GetToken(ctx *fasthttp.RequestCtx) TokenData
func (*AuthBearer) NewToken ¶ added in v1.0.11512
func (a *AuthBearer) NewToken(userData TokenData) (string, error)
func (*AuthBearer) String ¶
func (a *AuthBearer) String() string
Click to show internal directories.
Click to hide internal directories.