Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InvalidTokenErr is returned when passed a token for a user that does // not exist. InvalidTokenErr = errors.New("Invalid token, login required") // InvalidCredentialsErr is returned when a username does not match a // registered user or the password hashed with a salt does not match the // expected password hash. InvalidCredentialsErr = errors.New("invalid username or password") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server contains the comms server and handler.
type Token ¶
Token that identifies a user. It is unique and generated from a user's username and password.
func UnmarshalToken ¶
UnmarshalToken unmarshalls the byte slice into a Token.
Click to show internal directories.
Click to hide internal directories.