Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` AccessToken string `json:"access_token,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` TokenExpiry time.Time `json:"token_expiry,omitempty"` }
Account holds a user account
func NewWithRandomPassword ¶
NewWithRandomPassword creates a new Account with a random password
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
FileStore implements the Store interface and uses plain files
func NewFileStore ¶
NewFileStore returns a new FileStore. It returns an error if the given path does not exist or is not a directory.
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
RedisStore is an account store that is backed by Redis
func NewRedisStore ¶
func NewRedisStore(addresses []string) (*RedisStore, error)
NewRedisStore creates an account store that is backed by Redis
func (*RedisStore) Write ¶
func (rs *RedisStore) Write(a *Account) error
Click to show internal directories.
Click to hide internal directories.