Documentation ¶
Index ¶
- type AccessToken
- func (t *AccessToken) GetChain() string
- func (t *AccessToken) GetCreatedAt() time.Time
- func (t *AccessToken) GetToken() string
- func (t *AccessToken) GetUserID() int64
- func (t *AccessToken) GetValid() bool
- func (t *AccessToken) SetChain(chain string)
- func (t *AccessToken) SetCreatedAt(at time.Time)
- func (t *AccessToken) SetToken(token string)
- func (t *AccessToken) SetUserID(id int64)
- func (t *AccessToken) SetValid(valid bool)
- type CreateAccessTokenParams
- type CreateOAuth2IdentityParams
- type CreateRefreshTokenParams
- type CreateUserParams
- type DBTX
- type GetAccessTokenParams
- type GetRefreshTokenParams
- type GetUserByOAuth2IdentityParams
- type InvalidateAccessTokenChainParams
- type InvalidateRefreshTokenChainParams
- type InvalidateRefreshTokenParams
- type Queries
- func (q *Queries) CreateAccessToken(ctx context.Context, arg CreateAccessTokenParams) error
- func (q *Queries) CreateOAuth2Identity(ctx context.Context, arg CreateOAuth2IdentityParams) error
- func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (sql.Result, error)
- func (q *Queries) GetAccessToken(ctx context.Context, arg GetAccessTokenParams) (AccessToken, error)
- func (q *Queries) GetRefreshToken(ctx context.Context, arg GetRefreshTokenParams) (RefreshToken, error)
- func (q *Queries) GetUser(ctx context.Context, id int64) (User, error)
- func (q *Queries) GetUserByConfirmationToken(ctx context.Context, confirmToken sql.NullString) (User, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserByOAuth2Identity(ctx context.Context, arg GetUserByOAuth2IdentityParams) (User, error)
- func (q *Queries) GetUserByRecoveryToken(ctx context.Context, recoveryToken sql.NullString) (User, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username sql.NullString) (User, error)
- func (q *Queries) GetUserPermissions(ctx context.Context, userID int32) ([]string, error)
- func (q *Queries) GetUserRoles(ctx context.Context, userID int32) ([]string, error)
- func (q *Queries) InvalidateAccessTokenChain(ctx context.Context, arg InvalidateAccessTokenChainParams) error
- func (q *Queries) InvalidateAccessTokens(ctx context.Context, userID int32) error
- func (q *Queries) InvalidateRefreshToken(ctx context.Context, arg InvalidateRefreshTokenParams) error
- func (q *Queries) InvalidateRefreshTokenChain(ctx context.Context, arg InvalidateRefreshTokenChainParams) error
- func (q *Queries) InvalidateRefreshTokens(ctx context.Context, userID int32) error
- func (q *Queries) PruneAccessTokens(ctx context.Context, createdAt time.Time) error
- func (q *Queries) PruneRefreshTokens(ctx context.Context, createdAt time.Time) error
- func (q *Queries) RemoveOAuth2Identity(ctx context.Context, arg RemoveOAuth2IdentityParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RefreshToken
- func (t *RefreshToken) GetChain() string
- func (t *RefreshToken) GetCreatedAt() time.Time
- func (t *RefreshToken) GetToken() string
- func (t *RefreshToken) GetUserID() int64
- func (t *RefreshToken) GetValid() bool
- func (t *RefreshToken) SetChain(chain string)
- func (t *RefreshToken) SetCreatedAt(at time.Time)
- func (t *RefreshToken) SetToken(token string)
- func (t *RefreshToken) SetUserID(id int64)
- func (t *RefreshToken) SetValid(valid bool)
- type RemoveOAuth2IdentityParams
- type UpdateUserParams
- type User
- type UserIdentity
- type UserPermission
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
func (*AccessToken) GetChain ¶
func (t *AccessToken) GetChain() string
func (*AccessToken) GetCreatedAt ¶
func (t *AccessToken) GetCreatedAt() time.Time
func (*AccessToken) GetToken ¶
func (t *AccessToken) GetToken() string
func (*AccessToken) GetUserID ¶
func (t *AccessToken) GetUserID() int64
func (*AccessToken) GetValid ¶
func (t *AccessToken) GetValid() bool
func (*AccessToken) SetChain ¶
func (t *AccessToken) SetChain(chain string)
func (*AccessToken) SetCreatedAt ¶
func (t *AccessToken) SetCreatedAt(at time.Time)
func (*AccessToken) SetToken ¶
func (t *AccessToken) SetToken(token string)
func (*AccessToken) SetUserID ¶
func (t *AccessToken) SetUserID(id int64)
func (*AccessToken) SetValid ¶
func (t *AccessToken) SetValid(valid bool)
type CreateAccessTokenParams ¶
type CreateUserParams ¶
type CreateUserParams struct { Email string Password sql.NullString TotpSecret sql.NullString Confirmed int32 ConfirmToken sql.NullString RecoveryToken sql.NullString LockedUntil sql.NullTime Attempts int32 LastAttempt sql.NullTime }
type GetAccessTokenParams ¶
type GetRefreshTokenParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAccessToken ¶
func (q *Queries) CreateAccessToken(ctx context.Context, arg CreateAccessTokenParams) error
func (*Queries) CreateOAuth2Identity ¶
func (q *Queries) CreateOAuth2Identity(ctx context.Context, arg CreateOAuth2IdentityParams) error
func (*Queries) CreateRefreshToken ¶
func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
func (*Queries) CreateUser ¶
func (*Queries) GetAccessToken ¶
func (q *Queries) GetAccessToken(ctx context.Context, arg GetAccessTokenParams) (AccessToken, error)
func (*Queries) GetRefreshToken ¶
func (q *Queries) GetRefreshToken(ctx context.Context, arg GetRefreshTokenParams) (RefreshToken, error)
func (*Queries) GetUserByConfirmationToken ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByOAuth2Identity ¶
func (*Queries) GetUserByRecoveryToken ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) GetUserPermissions ¶
func (*Queries) GetUserRoles ¶
func (*Queries) InvalidateAccessTokenChain ¶
func (q *Queries) InvalidateAccessTokenChain(ctx context.Context, arg InvalidateAccessTokenChainParams) error
func (*Queries) InvalidateAccessTokens ¶
func (*Queries) InvalidateRefreshToken ¶
func (q *Queries) InvalidateRefreshToken(ctx context.Context, arg InvalidateRefreshTokenParams) error
func (*Queries) InvalidateRefreshTokenChain ¶
func (q *Queries) InvalidateRefreshTokenChain(ctx context.Context, arg InvalidateRefreshTokenChainParams) error
func (*Queries) InvalidateRefreshTokens ¶
func (*Queries) PruneAccessTokens ¶
func (*Queries) PruneRefreshTokens ¶
func (*Queries) RemoveOAuth2Identity ¶
func (q *Queries) RemoveOAuth2Identity(ctx context.Context, arg RemoveOAuth2IdentityParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
type RefreshToken ¶
func (*RefreshToken) GetChain ¶
func (t *RefreshToken) GetChain() string
func (*RefreshToken) GetCreatedAt ¶
func (t *RefreshToken) GetCreatedAt() time.Time
func (*RefreshToken) GetToken ¶
func (t *RefreshToken) GetToken() string
func (*RefreshToken) GetUserID ¶
func (t *RefreshToken) GetUserID() int64
func (*RefreshToken) GetValid ¶
func (t *RefreshToken) GetValid() bool
func (*RefreshToken) SetChain ¶
func (t *RefreshToken) SetChain(chain string)
func (*RefreshToken) SetCreatedAt ¶
func (t *RefreshToken) SetCreatedAt(at time.Time)
func (*RefreshToken) SetToken ¶
func (t *RefreshToken) SetToken(token string)
func (*RefreshToken) SetUserID ¶
func (t *RefreshToken) SetUserID(id int64)
func (*RefreshToken) SetValid ¶
func (t *RefreshToken) SetValid(valid bool)
type UpdateUserParams ¶
type UpdateUserParams struct { Email string Password sql.NullString TotpSecret sql.NullString Confirmed int32 ConfirmToken sql.NullString RecoveryToken sql.NullString LockedUntil sql.NullTime Attempts int32 LastAttempt sql.NullTime ID int64 }
type User ¶
type User struct { ID int64 Email string Username sql.NullString Password sql.NullString TotpSecret sql.NullString Confirmed int32 ConfirmToken sql.NullString RecoveryToken sql.NullString LockedUntil sql.NullTime Attempts int32 LastAttempt sql.NullTime CreatedAt time.Time LastLogin time.Time }
type UserIdentity ¶
type UserPermission ¶
Click to show internal directories.
Click to hide internal directories.