Documentation
¶
Index ¶
- type AddUserParams
- type CreateSessionParams
- type DBTX
- type GetSessionRow
- type Queries
- func (q *Queries) AddUser(ctx context.Context, arg AddUserParams) error
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
- func (q *Queries) GetSession(ctx context.Context, id string) (GetSessionRow, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserParams ¶
type CreateSessionParams ¶
type CreateSessionParams struct {
ID string
UserID pgtype.Int4
ExpiresAt pgtype.Timestamptz
}
type GetSessionRow ¶
type GetSessionRow struct {
ID string
UserID pgtype.Int4
CreatedAt pgtype.Timestamptz
RevokedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
LastActiveAt pgtype.Timestamptz
Username string
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateSession ¶
func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
func (*Queries) GetSession ¶
func (*Queries) GetUserByUsername ¶
type Session ¶
type Session struct {
ID string
UserID pgtype.Int4
CreatedAt pgtype.Timestamptz
RevokedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
LastActiveAt pgtype.Timestamptz
}
Click to show internal directories.
Click to hide internal directories.