Documentation ¶
Index ¶
- Variables
- type ChangeUserPasswordParams
- type DBTX
- type InsertTokenParams
- type InsertUserParams
- type NullRiverJobState
- type Queries
- func (q *Queries) ChangeUserPassword(ctx context.Context, db DBTX, arg ChangeUserPasswordParams) error
- func (q *Queries) DeleteExpiredTokens(ctx context.Context, db DBTX) error
- func (q *Queries) DeleteToken(ctx context.Context, db DBTX, id uuid.UUID) error
- func (q *Queries) DeleteUser(ctx context.Context, db DBTX, id uuid.UUID) error
- func (q *Queries) InsertToken(ctx context.Context, db DBTX, arg InsertTokenParams) (Token, error)
- func (q *Queries) InsertUser(ctx context.Context, db DBTX, arg InsertUserParams) (User, error)
- func (q *Queries) QueryExpiredTokens(ctx context.Context, db DBTX) ([]Token, error)
- func (q *Queries) QueryTokenByHash(ctx context.Context, db DBTX, hash string) (Token, error)
- func (q *Queries) QueryTokenByID(ctx context.Context, db DBTX, id uuid.UUID) (Token, error)
- func (q *Queries) QueryUserByEmail(ctx context.Context, db DBTX, email string) (User, error)
- func (q *Queries) QueryUserByID(ctx context.Context, db DBTX, id uuid.UUID) (User, error)
- func (q *Queries) QueryUsers(ctx context.Context, db DBTX) ([]User, error)
- func (q *Queries) QueryValidTokens(ctx context.Context, db DBTX) ([]Token, error)
- func (q *Queries) UpdateTokenExpiresAt(ctx context.Context, db DBTX, arg UpdateTokenExpiresAtParams) (Token, error)
- func (q *Queries) UpdateTokenMetaInformation(ctx context.Context, db DBTX, arg UpdateTokenMetaInformationParams) (Token, error)
- func (q *Queries) UpdateUser(ctx context.Context, db DBTX, arg UpdateUserParams) (User, error)
- func (q *Queries) VerifyUserEmail(ctx context.Context, db DBTX, arg VerifyUserEmailParams) error
- type RiverJob
- type RiverJobState
- type RiverLeader
- type RiverMigration
- type RiverQueue
- type Token
- type UpdateTokenExpiresAtParams
- type UpdateTokenMetaInformationParams
- type UpdateUserParams
- type User
- type VerifyUserEmailParams
Constants ¶
This section is empty.
Variables ¶
View Source
var Stmts = New()
Functions ¶
This section is empty.
Types ¶
type ChangeUserPasswordParams ¶
type ChangeUserPasswordParams struct { ID uuid.UUID UpdatedAt pgtype.Timestamptz Password string }
type InsertTokenParams ¶
type InsertTokenParams struct { ID uuid.UUID CreatedAt pgtype.Timestamptz Hash string ExpiresAt pgtype.Timestamptz MetaInformation []byte }
type InsertUserParams ¶
type InsertUserParams struct { ID uuid.UUID CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz Name string Email string Password string }
type NullRiverJobState ¶
type NullRiverJobState struct { RiverJobState RiverJobState Valid bool // Valid is true if RiverJobState is not NULL }
func (*NullRiverJobState) Scan ¶
func (ns *NullRiverJobState) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct { }
func (*Queries) ChangeUserPassword ¶
func (*Queries) DeleteExpiredTokens ¶
func (*Queries) DeleteToken ¶
func (*Queries) DeleteUser ¶
func (*Queries) InsertToken ¶
func (*Queries) InsertUser ¶
func (*Queries) QueryExpiredTokens ¶
func (*Queries) QueryTokenByHash ¶
func (*Queries) QueryTokenByID ¶
func (*Queries) QueryUserByEmail ¶
func (*Queries) QueryUserByID ¶
func (*Queries) QueryUsers ¶
func (*Queries) QueryValidTokens ¶
func (*Queries) UpdateTokenExpiresAt ¶
func (*Queries) UpdateTokenMetaInformation ¶
func (*Queries) UpdateUser ¶
func (*Queries) VerifyUserEmail ¶
type RiverJob ¶
type RiverJob struct { ID int64 State RiverJobState Attempt int16 MaxAttempts int16 AttemptedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz FinalizedAt pgtype.Timestamptz ScheduledAt pgtype.Timestamptz Priority int16 Args []byte AttemptedBy []string Errors [][]byte Kind string Metadata []byte Queue string Tags []string }
type RiverJobState ¶
type RiverJobState string
const ( RiverJobStateAvailable RiverJobState = "available" RiverJobStateCancelled RiverJobState = "cancelled" RiverJobStateCompleted RiverJobState = "completed" RiverJobStateDiscarded RiverJobState = "discarded" RiverJobStatePending RiverJobState = "pending" RiverJobStateRetryable RiverJobState = "retryable" RiverJobStateRunning RiverJobState = "running" RiverJobStateScheduled RiverJobState = "scheduled" )
func (*RiverJobState) Scan ¶
func (e *RiverJobState) Scan(src interface{}) error
type RiverLeader ¶
type RiverLeader struct { ElectedAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz LeaderID string Name string }
type RiverMigration ¶
type RiverMigration struct { ID int64 CreatedAt pgtype.Timestamptz Version int64 }
type RiverQueue ¶
type RiverQueue struct { Name string CreatedAt pgtype.Timestamptz Metadata []byte PausedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type Token ¶
type Token struct { ID uuid.UUID CreatedAt pgtype.Timestamptz Hash string ExpiresAt pgtype.Timestamptz MetaInformation []byte }
type UpdateTokenExpiresAtParams ¶
type UpdateTokenExpiresAtParams struct { ID uuid.UUID ExpiresAt pgtype.Timestamptz }
type UpdateUserParams ¶
type User ¶
type User struct { ID uuid.UUID CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz Name string Email string EmailVerifiedAt pgtype.Timestamptz Password string }
type VerifyUserEmailParams ¶
type VerifyUserEmailParams struct { Email string UpdatedAt pgtype.Timestamptz EmailVerifiedAt pgtype.Timestamptz }
Click to show internal directories.
Click to hide internal directories.