Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTokenParams ¶
GetTokenParams - return custom param
Types ¶
type Authorize ¶
type Authorize struct {
Secret string
Security bool
Params []string
Prefix string
Check Check
CheckBasic CheckBasic
}
func NewAuthorize ¶
func NewAuthorize(secret string, security bool, Check Check, CheckBasic CheckBasic) *Authorize
NewAuthorize
func (*Authorize) ParseBasic ¶
func (a *Authorize) ParseBasic(t string) (*pbauthorize.AuthorizeResponse, error)
func (*Authorize) ParseToken ¶
func (a *Authorize) ParseToken(t string) (*pbauthorize.AuthorizeResponse, error)
ParseToken
type CheckBasic ¶
Click to show internal directories.
Click to hide internal directories.