Documentation ¶
Index ¶
- type ClientStorage
- type SessionStorage
- type TokenStorage
- func (s *TokenStorage) Add(token storage.OAuth2Token) error
- func (s *TokenStorage) Close() error
- func (s *TokenStorage) FindByAccessToken(at string) (storage.OAuth2Token, error)
- func (s *TokenStorage) FindByCodeChallenge(cc string) (storage.OAuth2Token, error)
- func (s *TokenStorage) Remove(token storage.OAuth2Token) error
- type UserStorage
- func (s *UserStorage) Add(user storage.OAuth2User) error
- func (s *UserStorage) Close() error
- func (s *UserStorage) Edit(user storage.OAuth2User) error
- func (s *UserStorage) Get(id uint) (storage.OAuth2User, error)
- func (s *UserStorage) GetByUsername(username string) (storage.OAuth2User, error)
- func (s *UserStorage) Remove(id uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientStorage ¶
type ClientStorage struct {
// contains filtered or unexported fields
}
func NewClientStorage ¶
func NewClientStorage(dsn string) (*ClientStorage, error)
func (*ClientStorage) Add ¶
func (s *ClientStorage) Add(client storage.OAuth2Client) error
func (*ClientStorage) Close ¶
func (s *ClientStorage) Close() error
func (*ClientStorage) Edit ¶
func (s *ClientStorage) Edit(client storage.OAuth2Client) error
func (*ClientStorage) Get ¶
func (s *ClientStorage) Get(id string) (storage.OAuth2Client, error)
func (*ClientStorage) Remove ¶
func (s *ClientStorage) Remove(client storage.OAuth2Client) error
type SessionStorage ¶
type SessionStorage struct {
// contains filtered or unexported fields
}
func NewSessionStorage ¶
func NewSessionStorage(dsn string) (*SessionStorage, error)
NewSessionStorage returns a new instance of the SessionStorage using an SQLite3 DSN.
func (*SessionStorage) Add ¶
func (s *SessionStorage) Add(session storage.OAuth2Session) error
func (*SessionStorage) Close ¶
func (s *SessionStorage) Close() error
func (*SessionStorage) Get ¶
func (s *SessionStorage) Get(id string) (storage.OAuth2Session, error)
func (*SessionStorage) Remove ¶
func (s *SessionStorage) Remove(id string) error
type TokenStorage ¶
type TokenStorage struct {
// contains filtered or unexported fields
}
func NewTokenStorage ¶
func NewTokenStorage(dsn string) (*TokenStorage, error)
func (*TokenStorage) Add ¶
func (s *TokenStorage) Add(token storage.OAuth2Token) error
func (*TokenStorage) Close ¶
func (s *TokenStorage) Close() error
func (*TokenStorage) FindByAccessToken ¶
func (s *TokenStorage) FindByAccessToken(at string) (storage.OAuth2Token, error)
func (*TokenStorage) FindByCodeChallenge ¶
func (s *TokenStorage) FindByCodeChallenge(cc string) (storage.OAuth2Token, error)
func (*TokenStorage) Remove ¶
func (s *TokenStorage) Remove(token storage.OAuth2Token) error
type UserStorage ¶
type UserStorage struct {
// contains filtered or unexported fields
}
func NewUserStorage ¶
func NewUserStorage(dsn string) (*UserStorage, error)
func (*UserStorage) Add ¶
func (s *UserStorage) Add(user storage.OAuth2User) error
func (*UserStorage) Close ¶
func (s *UserStorage) Close() error
func (*UserStorage) Edit ¶
func (s *UserStorage) Edit(user storage.OAuth2User) error
func (*UserStorage) Get ¶
func (s *UserStorage) Get(id uint) (storage.OAuth2User, error)
func (*UserStorage) GetByUsername ¶
func (s *UserStorage) GetByUsername(username string) (storage.OAuth2User, error)
func (*UserStorage) Remove ¶
func (s *UserStorage) Remove(id uint) error
Click to show internal directories.
Click to hide internal directories.