Documentation
¶
Index ¶
- Variables
- func DecodeSession(token string) (int, string, error)
- type Auth
- func (a *Auth) EncodeSession(id int, secret string) string
- func (a *Auth) HashMatches(password string, hashedPassword string) (bool, error)
- func (a *Auth) HashPassword(password string) (string, error)
- func (a *Auth) NewSession(user *User, userAgent string, ipAddress string) (*Session, string, error)
- type Params
- type Role
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RoleViewChats = &Role{ ID: 1, Description: "Allows user to view server chats", } RoleMutePlayers = &Role{ ID: 2, Description: "Allows user to mute players", } RoleBanPlayers = &Role{ ID: 3, Description: "Allows user to ban players", } RoleExpungeHistory = &Role{ ID: 4, Description: "Allows user to expunge items from players' moderation history", } RoleManageUsers = &Role{ ID: 5, Description: "Allows user to add and remove panel users", } )
Roles
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) HashMatches ¶
Click to show internal directories.
Click to hide internal directories.