Documentation ¶
Index ¶
- type CreateSessionParams
- type CreateUserParams
- type DBTX
- type Querier
- type Queries
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) GetSession(ctx context.Context, id uuid.UUID) (Session, error)
- func (q *Queries) GetUser(ctx context.Context, username string) (User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSessionParams ¶
type CreateUserParams ¶
type Querier ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateSession ¶
func (*Queries) CreateUser ¶
func (*Queries) GetSession ¶
type Session ¶
type Session struct { ID uuid.UUID `json:"id"` Username string `json:"username"` RefreshToken string `json:"refresh_token"` UserAgent string `json:"user_agent"` ClientIp string `json:"client_ip"` IsBlocked bool `json:"is_blocked"` ExpiresAt time.Time `json:"expires_at"` CreatedAt time.Time `json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.