Documentation ¶
Index ¶
- type AlgType
- type Apikey
- type DBTX
- type GetApiKeyForVerifyRow
- type InsertApiKeyParams
- type NullAlgType
- type Queries
- func (q *Queries) GetApiKey(ctx context.Context, db DBTX, id int64) (Apikey, error)
- func (q *Queries) GetApiKeyForVerify(ctx context.Context, db DBTX, id int64) (GetApiKeyForVerifyRow, error)
- func (q *Queries) InsertApiKey(ctx context.Context, db DBTX, arg InsertApiKeyParams) (int64, error)
- func (q *Queries) SearchApiKeys(ctx context.Context, db DBTX, sub sql.NullString) ([]SearchApiKeysRow, error)
- type SearchApiKeysRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apikey ¶
type Apikey struct { ID int64 `json:"id"` Sec []byte `json:"sec"` Key []byte `json:"key"` Sub sql.NullString `json:"sub"` Alg NullAlgType `json:"alg"` Exp sql.NullTime `json:"exp"` Name sql.NullString `json:"name"` Extra pqtype.NullRawMessage `json:"extra"` }
type GetApiKeyForVerifyRow ¶
type GetApiKeyForVerifyRow struct { ID int64 `json:"id"` Sec []byte `json:"sec"` Key []byte `json:"key"` Sub sql.NullString `json:"sub"` Alg NullAlgType `json:"alg"` Extra pqtype.NullRawMessage `json:"extra"` }
type InsertApiKeyParams ¶
type InsertApiKeyParams struct { Sec []byte `json:"sec"` Key []byte `json:"key"` Sub sql.NullString `json:"sub"` Alg NullAlgType `json:"alg"` Exp sql.NullTime `json:"exp"` Name sql.NullString `json:"name"` Extra pqtype.NullRawMessage `json:"extra"` }
type NullAlgType ¶
type NullAlgType struct { AlgType AlgType `json:"alg_type"` Valid bool `json:"valid"` // Valid is true if AlgType is not NULL }
func (*NullAlgType) Scan ¶
func (ns *NullAlgType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct { }
func (*Queries) GetApiKeyForVerify ¶
func (*Queries) InsertApiKey ¶
func (*Queries) SearchApiKeys ¶
func (q *Queries) SearchApiKeys(ctx context.Context, db DBTX, sub sql.NullString) ([]SearchApiKeysRow, error)
type SearchApiKeysRow ¶ added in v0.1.4
type SearchApiKeysRow struct { ID int64 `json:"id"` Sec []byte `json:"sec"` Key []byte `json:"key"` Sub sql.NullString `json:"sub"` Alg NullAlgType `json:"alg"` Exp sql.NullTime `json:"exp"` Name sql.NullString `json:"name"` }
Click to show internal directories.
Click to hide internal directories.