Documentation ¶
Index ¶
- Variables
- type Account
- type CreateSessionParams
- type DBTX
- type NullRole
- type Querier
- type Queries
- func (q *Queries) CreateAccount(ctx context.Context, owner string) (Account, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
- func (q *Queries) GetAccountByOwner(ctx context.Context, owner string) (Account, error)
- func (q *Queries) GetSession(ctx context.Context, id uuid.UUID) (Session, error)
- func (q *Queries) RevokeAccountSessions(ctx context.Context, walletAddress string) (pgconn.CommandTag, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Role
- type SQLStore
- type Session
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var RecordNotFoundError = pgx.ErrNoRows
Functions ¶
This section is empty.
Types ¶
type CreateSessionParams ¶
type NullRole ¶
type NullRole struct { Role Role `json:"role"` Valid bool `json:"valid"` // Valid is true if Role is not NULL }
type Querier ¶
type Querier interface { CreateAccount(ctx context.Context, owner string) (Account, error) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error) GetAccountByOwner(ctx context.Context, owner string) (Account, error) GetSession(ctx context.Context, id uuid.UUID) (Session, error) RevokeAccountSessions(ctx context.Context, walletAddress string) (pgconn.CommandTag, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAccount ¶
func (*Queries) CreateSession ¶
func (*Queries) GetAccountByOwner ¶
func (*Queries) GetSession ¶
func (*Queries) RevokeAccountSessions ¶
type Session ¶
type Session struct { ID uuid.UUID `json:"id"` WalletAddress string `json:"wallet_address"` RefreshToken string `json:"refresh_token"` UserAgent string `json:"user_agent"` ClientIp string `json:"client_ip"` IsRevoked bool `json:"is_revoked"` ExpiresAt time.Time `json:"expires_at"` CreatedAt time.Time `json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.