Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileAuthorize ¶
type FileAuthorize struct {
// contains filtered or unexported fields
}
func (*FileAuthorize) GetAllAccounts ¶
func (f *FileAuthorize) GetAllAccounts() map[string]User
type IAuthorize ¶
type IAuthorize interface { GetAllAccounts() map[string]User GetToken(name string, pwd string) (string, error) //获取访问token VerifyToken(token string) error //校验token }
func NewAuthorize ¶
func NewAuthorize(context *context.Context) IAuthorize
Click to show internal directories.
Click to hide internal directories.