sqlite

package
v0.0.0-...-d42eab1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)

NewClientStorage returns a new instance of the ClientStorage using an SQLite3 DSN.

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 (*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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL