Documentation ¶
Index ¶
- Constants
- type Authen
- func (authen *Authen) ChangePassword(userid string, newPw []byte) bool
- func (authen *Authen) ContainsUser(userid string) bool
- func (authen *Authen) CreateUser(userid string, username string, password []byte) (string, error)
- func (authen *Authen) DeleteUsers(userids []string) error
- func (authen *Authen) GetCurrentUserId(jwtCookie string) (string, error)
- func (authen *Authen) Login(userid string, password []byte, duration int) (string, error)
- func (authen *Authen) ParseToken(tokenString string) (*jwt.Token, error)
- func (authen *Authen) UpdateUser(userid string, username string) bool
- type User
- type UserNotFound
- type WrongPasswordError
Constants ¶
View Source
const AUTHEN = "_authen"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authen ¶
type Authen struct {
// contains filtered or unexported fields
}
func (*Authen) ChangePassword ¶
func (*Authen) ContainsUser ¶
func (*Authen) CreateUser ¶
func (*Authen) DeleteUsers ¶
func (*Authen) GetCurrentUserId ¶
func (*Authen) ParseToken ¶
type UserNotFound ¶
type UserNotFound int
func (UserNotFound) Error ¶
func (f UserNotFound) Error() string
type WrongPasswordError ¶
type WrongPasswordError int
func (WrongPasswordError) Error ¶
func (f WrongPasswordError) Error() string
Click to show internal directories.
Click to hide internal directories.