Documentation ¶
Index ¶
Constants ¶
View Source
const PasswordLengthMax = 18
View Source
const PasswordLengthMin = 5
View Source
const StringLengthMax = 24
View Source
const StringLengthMin = 5
View Source
const TokenByteLength = 24
View Source
const TokenHexLength = TokenByteLength * 4 / 3
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer() error
Types ¶
type CreateUserData ¶
type LogoutData ¶
type LogoutData struct {
AccessToken string `json:"access_token"`
}
type RefreshData ¶
type RefreshData struct {
RefreshToken string `json:"refresh_token"`
}
type SessionResponseData ¶
type ValidateTokenData ¶
type ValidationBag ¶
type ValidationBag struct {
Responses map[string]ValidationReponse
}
func (*ValidationBag) Clear ¶
func (r *ValidationBag) Clear()
func (*ValidationBag) Valid ¶
func (r *ValidationBag) Valid() bool
type ValidationReponse ¶
type ValidationReponse string
func (*ValidationReponse) Valid ¶
func (r *ValidationReponse) Valid() bool
Click to show internal directories.
Click to hide internal directories.