Documentation
¶
Index ¶
Constants ¶
View Source
const (
MinBytesPerToken = 32
)
The minimum number of bytes to be used for each session token.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string Port string User string Password string Database string SSLMode string }
func DefaultPostgresConfig ¶
func DefaultPostgresConfig() PostgresConfig
func (PostgresConfig) String ¶
func (cfg PostgresConfig) String() string
type Session ¶
Token is only set when creating a new session. When look up a session this will be left empty, as we only store the hash of a session token in our database and we cannot reverse it into a raw token.
type SessionService ¶
func (*SessionService) Delete ¶
func (ss *SessionService) Delete(token string) error
type UserService ¶
func (*UserService) Authenticate ¶
func (us *UserService) Authenticate(email, password string) (*User, error)
Click to show internal directories.
Click to hide internal directories.