Documentation ¶
Index ¶
- type AuthorizationCode
- type AuthorizationHistory
- type Client
- type CreateAuthzCodeParams
- type CreateAuthzHistoryParams
- type CreateClientParams
- type CreateSessionParams
- type CreateUserParams
- type DBTX
- type GetAuthzHistoryParams
- type GetClientByNameForUnmatchingIDParams
- type GetSessionWithClientForUserIDRow
- type GetSessionWithClientRow
- type GetSessionWithOptionalClientRow
- type GetSessionWithUserRow
- type GetUserAndClientCountRow
- type Queries
- func (q *Queries) CreateAuthzCode(ctx context.Context, arg CreateAuthzCodeParams) (sql.Result, error)
- func (q *Queries) CreateAuthzHistory(ctx context.Context, arg CreateAuthzHistoryParams) (sql.Result, error)
- func (q *Queries) CreateClient(ctx context.Context, arg CreateClientParams) (sql.Result, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (sql.Result, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (sql.Result, error)
- func (q *Queries) DeleteAuthzCode(ctx context.Context, id string) error
- func (q *Queries) DeleteClient(ctx context.Context, id string) error
- func (q *Queries) DeleteExpiredAuthzCode(ctx context.Context) error
- func (q *Queries) DeleteExpiredSessions(ctx context.Context) error
- func (q *Queries) DeleteSession(ctx context.Context, id string) error
- func (q *Queries) GetAuthzCode(ctx context.Context, id string) (AuthorizationCode, error)
- func (q *Queries) GetAuthzHistory(ctx context.Context, arg GetAuthzHistoryParams) (AuthorizationHistory, error)
- func (q *Queries) GetClient(ctx context.Context, id string) (Client, error)
- func (q *Queries) GetClientByName(ctx context.Context, name string) (Client, error)
- func (q *Queries) GetClientByNameForUnmatchingID(ctx context.Context, arg GetClientByNameForUnmatchingIDParams) (Client, error)
- func (q *Queries) GetClients(ctx context.Context) ([]Client, error)
- func (q *Queries) GetSession(ctx context.Context, id string) (Session, error)
- func (q *Queries) GetSessionWithClient(ctx context.Context, id string) (GetSessionWithClientRow, error)
- func (q *Queries) GetSessionWithClientForUserID(ctx context.Context, userID string) ([]GetSessionWithClientForUserIDRow, error)
- func (q *Queries) GetSessionWithOptionalClient(ctx context.Context, id string) (GetSessionWithOptionalClientRow, error)
- func (q *Queries) GetSessionWithUser(ctx context.Context, id string) (GetSessionWithUserRow, error)
- func (q *Queries) GetUser(ctx context.Context, id string) (User, error)
- func (q *Queries) GetUserAndClientCount(ctx context.Context) (GetUserAndClientCountRow, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUsers(ctx context.Context) ([]User, error)
- func (q *Queries) UpdateClient(ctx context.Context, arg UpdateClientParams) error
- func (q *Queries) UpdateUserAvatar(ctx context.Context, arg UpdateUserAvatarParams) error
- func (q *Queries) UpdateUserPasswordHash(ctx context.Context, arg UpdateUserPasswordHashParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Session
- type UpdateClientParams
- type UpdateUserAvatarParams
- type UpdateUserPasswordHashParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationCode ¶
type AuthorizationCode struct { ID string UserID string ClientID string Scopes string Os sql.NullString Browser sql.NullString ExpiresAt sql.NullTime }
type AuthorizationHistory ¶
type CreateAuthzCodeParams ¶
type CreateAuthzCodeParams struct { ID string UserID string ClientID string Scopes string Os sql.NullString Browser sql.NullString ExpiresAt sql.NullTime }
type CreateClientParams ¶
type CreateClientParams struct { ID string SecretHash string Name string AuthCallbackUrls string LogoutCallbackUrls string PictureUrl sql.NullString BackchannelLogoutUrl sql.NullString TokenExpiration int64 }
type CreateSessionParams ¶
type CreateSessionParams struct { ID string UserID string ClientID sql.NullString ExpiresAt time.Time Os sql.NullString Browser sql.NullString }
type CreateUserParams ¶
type CreateUserParams struct { ID string Email string HashedPassword sql.NullString AvatarUrl sql.NullString }
type GetAuthzHistoryParams ¶
type GetSessionWithClientForUserIDRow ¶
type GetSessionWithClientForUserIDRow struct { ID string CreatedAt time.Time ExpiresAt time.Time Os sql.NullString Browser sql.NullString ClientName sql.NullString }
type GetSessionWithClientRow ¶
type GetSessionWithOptionalClientRow ¶
type GetSessionWithOptionalClientRow struct { ID string ClientID sql.NullString ClientName sql.NullString LogoutCallbackUrls sql.NullString BackchannelLogoutUrl sql.NullString }
type GetSessionWithUserRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAuthzCode ¶
func (*Queries) CreateAuthzHistory ¶
func (*Queries) CreateClient ¶
func (*Queries) CreateSession ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteAuthzCode ¶
func (*Queries) DeleteExpiredAuthzCode ¶
func (*Queries) DeleteExpiredSessions ¶
func (*Queries) DeleteSession ¶
func (*Queries) GetAuthzCode ¶
func (*Queries) GetAuthzHistory ¶
func (q *Queries) GetAuthzHistory(ctx context.Context, arg GetAuthzHistoryParams) (AuthorizationHistory, error)
func (*Queries) GetClientByName ¶
func (*Queries) GetClientByNameForUnmatchingID ¶
func (*Queries) GetSession ¶
func (*Queries) GetSessionWithClient ¶
func (*Queries) GetSessionWithClientForUserID ¶
func (*Queries) GetSessionWithOptionalClient ¶
func (*Queries) GetSessionWithUser ¶
func (*Queries) GetUserAndClientCount ¶
func (q *Queries) GetUserAndClientCount(ctx context.Context) (GetUserAndClientCountRow, error)
func (*Queries) GetUserByEmail ¶
func (*Queries) UpdateClient ¶
func (q *Queries) UpdateClient(ctx context.Context, arg UpdateClientParams) error
func (*Queries) UpdateUserAvatar ¶
func (q *Queries) UpdateUserAvatar(ctx context.Context, arg UpdateUserAvatarParams) error
func (*Queries) UpdateUserPasswordHash ¶
func (q *Queries) UpdateUserPasswordHash(ctx context.Context, arg UpdateUserPasswordHashParams) error
type Session ¶
type Session struct { ID string UserID string ClientID sql.NullString CreatedAt time.Time ExpiresAt time.Time Os sql.NullString Browser sql.NullString }
type UpdateClientParams ¶
type UpdateClientParams struct { Name string AuthCallbackUrls string LogoutCallbackUrls string PictureUrl sql.NullString BackchannelLogoutUrl sql.NullString TokenExpiration int64 ID string }
type UpdateUserAvatarParams ¶
type UpdateUserAvatarParams struct { AvatarUrl sql.NullString ID string }
type UpdateUserPasswordHashParams ¶
type UpdateUserPasswordHashParams struct { HashedPassword sql.NullString ID string }
Click to show internal directories.
Click to hide internal directories.