Documentation
¶
Index ¶
- type AuthStorage
- func (a *AuthStorage) IssueToken(ctx context.Context, clientTokenRaw, ip, userAgent string) (*Tokens, error)
- func (s *AuthStorage) Ping(ctx context.Context) error
- func (a *AuthStorage) Queries() *authsqlc.Queries
- func (a *AuthStorage) RefreshToken(ctx context.Context, refreshToken, ip, userAgent string) (string, error)
- type Tokens
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStorage ¶
type AuthStorage struct {
// contains filtered or unexported fields
}
func NewAuthStorage ¶
func NewAuthStorage(db *sql.DB) *AuthStorage
func (*AuthStorage) IssueToken ¶
func (*AuthStorage) Queries ¶
func (a *AuthStorage) Queries() *authsqlc.Queries
func (*AuthStorage) RefreshToken ¶
Click to show internal directories.
Click to hide internal directories.