Documentation
¶
Index ¶
- type CreateDeviceInfoParams
- type CreateRefreshTokenParams
- type CreateTransactionParams
- type CreateUserParams
- type DBTX
- type DeleteTransactionByIDParams
- type DeviceQuerier
- type GetDeviceInfoByUserParams
- type GetRefreshByUserAndDeviceParams
- type GetUserByEmailRow
- type GetUserTransactionByIDParams
- type GetUserTransactionByIDRow
- type GetUserTransactionsFirstPageParams
- type GetUserTransactionsFirstPageRow
- type GetUserTransactionsPaginatedParams
- type GetUserTransactionsPaginatedRow
- type Queries
- func (q *Queries) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (q *Queries) CreateDeviceInfo(ctx context.Context, arg CreateDeviceInfoParams) (string, error)
- func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
- func (q *Queries) CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) DeleteTransactionByID(ctx context.Context, arg DeleteTransactionByIDParams) (string, error)
- func (q *Queries) GetDetailedCategories(ctx context.Context) ([]models.DetailedCategory, error)
- func (q *Queries) GetDetailedCategoryID(ctx context.Context, name string) (int64, error)
- func (q *Queries) GetDeviceInfoByUser(ctx context.Context, arg GetDeviceInfoByUserParams) (string, error)
- func (q *Queries) GetPrimaryCategories(ctx context.Context) ([]models.PrimaryCategory, error)
- func (q *Queries) GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
- func (q *Queries) GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
- func (q *Queries) GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
- func (q *Queries) GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
- func (q *Queries) RevokeToken(ctx context.Context, arg RevokeTokenParams) error
- func (q *Queries) UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RealDeviceQuerier
- type RealSqlTxQuerier
- type RealTokenQuerier
- func (rt *RealTokenQuerier) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
- func (rt *RealTokenQuerier) GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
- func (rt *RealTokenQuerier) RevokeToken(ctx context.Context, arg RevokeTokenParams) error
- type RealTransactionQuerier
- func (rt *RealTransactionQuerier) CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
- func (rt *RealTransactionQuerier) DeleteTransactionByID(ctx context.Context, arg DeleteTransactionByIDParams) (string, error)
- func (rt *RealTransactionQuerier) GetDetailedCategories(ctx context.Context) ([]models.DetailedCategory, error)
- func (rt *RealTransactionQuerier) GetDetailedCategoryID(ctx context.Context, name string) (int64, error)
- func (rt *RealTransactionQuerier) GetPrimaryCategories(ctx context.Context) ([]models.PrimaryCategory, error)
- func (rt *RealTransactionQuerier) GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
- func (rt *RealTransactionQuerier) GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
- func (rt *RealTransactionQuerier) GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
- func (rt *RealTransactionQuerier) UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
- type RealTransactionalQuerier
- func (r *RealTransactionalQuerier) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (r *RealTransactionalQuerier) CreateDeviceInfo(ctx context.Context, arg CreateDeviceInfoParams) (string, error)
- func (r *RealTransactionalQuerier) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
- func (r *RealTransactionalQuerier) CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
- func (r *RealTransactionalQuerier) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (r *RealTransactionalQuerier) DeleteTransactionByID(ctx context.Context, arg DeleteTransactionByIDParams) (string, error)
- func (r *RealTransactionalQuerier) GetDetailedCategories(ctx context.Context) ([]models.DetailedCategory, error)
- func (r *RealTransactionalQuerier) GetDetailedCategoryID(ctx context.Context, name string) (int64, error)
- func (r *RealTransactionalQuerier) GetDeviceInfoByUser(ctx context.Context, arg GetDeviceInfoByUserParams) (string, error)
- func (r *RealTransactionalQuerier) GetPrimaryCategories(ctx context.Context) ([]models.PrimaryCategory, error)
- func (r *RealTransactionalQuerier) GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
- func (r *RealTransactionalQuerier) GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
- func (r *RealTransactionalQuerier) GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
- func (r *RealTransactionalQuerier) GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
- func (r *RealTransactionalQuerier) GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
- func (r *RealTransactionalQuerier) RevokeToken(ctx context.Context, arg RevokeTokenParams) error
- func (r *RealTransactionalQuerier) UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
- func (r *RealTransactionalQuerier) WithTx(tx *sql.Tx) SqlTransactionalQuerier
- type RealUserQuerier
- type RevokeTokenParams
- type SqlTransactionalQuerier
- type SqlTxQuerier
- type TokenQuerier
- type TransactionQuerier
- type UpdateTransactionByIDParams
- type UpdateTransactionByIDRow
- type UserQuerier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDeviceInfoParams ¶
type CreateTransactionParams ¶
type CreateUserParams ¶
type DeviceQuerier ¶
type DeviceQuerier interface {
GetDeviceInfoByUser(ctx context.Context, arg GetDeviceInfoByUserParams) (string, error)
CreateDeviceInfo(ctx context.Context, arg CreateDeviceInfoParams) (string, error)
}
func NewRealDevicequerier ¶
func NewRealDevicequerier(q SqlTransactionalQuerier) DeviceQuerier
type GetUserByEmailRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateDeviceInfo ¶
func (*Queries) CreateRefreshToken ¶
func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
func (*Queries) CreateTransaction ¶
func (q *Queries) CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*Queries) DeleteTransactionByID ¶
func (*Queries) GetDetailedCategories ¶
func (*Queries) GetDetailedCategoryID ¶
func (*Queries) GetDeviceInfoByUser ¶
func (*Queries) GetPrimaryCategories ¶
func (*Queries) GetRefreshByUserAndDevice ¶
func (q *Queries) GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserTransactionByID ¶
func (q *Queries) GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
func (*Queries) GetUserTransactionsFirstPage ¶
func (q *Queries) GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
func (*Queries) GetUserTransactionsPaginated ¶
func (q *Queries) GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
func (*Queries) RevokeToken ¶
func (q *Queries) RevokeToken(ctx context.Context, arg RevokeTokenParams) error
func (*Queries) UpdateTransactionByID ¶
func (q *Queries) UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
type RealDeviceQuerier ¶
type RealDeviceQuerier struct {
// contains filtered or unexported fields
}
func (*RealDeviceQuerier) CreateDeviceInfo ¶
func (rd *RealDeviceQuerier) CreateDeviceInfo(ctx context.Context, arg CreateDeviceInfoParams) (string, error)
func (*RealDeviceQuerier) GetDeviceInfoByUser ¶
func (rd *RealDeviceQuerier) GetDeviceInfoByUser(ctx context.Context, arg GetDeviceInfoByUserParams) (string, error)
type RealSqlTxQuerier ¶
type RealSqlTxQuerier struct {
// contains filtered or unexported fields
}
func (*RealSqlTxQuerier) WithTx ¶
func (rst *RealSqlTxQuerier) WithTx(tx *sql.Tx) SqlTransactionalQuerier
type RealTokenQuerier ¶
type RealTokenQuerier struct {
// contains filtered or unexported fields
}
func (*RealTokenQuerier) CreateRefreshToken ¶
func (rt *RealTokenQuerier) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
func (*RealTokenQuerier) GetRefreshByUserAndDevice ¶
func (rt *RealTokenQuerier) GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
func (*RealTokenQuerier) RevokeToken ¶
func (rt *RealTokenQuerier) RevokeToken(ctx context.Context, arg RevokeTokenParams) error
type RealTransactionQuerier ¶
type RealTransactionQuerier struct {
// contains filtered or unexported fields
}
func (*RealTransactionQuerier) CreateTransaction ¶
func (rt *RealTransactionQuerier) CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
func (*RealTransactionQuerier) DeleteTransactionByID ¶
func (rt *RealTransactionQuerier) DeleteTransactionByID(ctx context.Context, arg DeleteTransactionByIDParams) (string, error)
func (*RealTransactionQuerier) GetDetailedCategories ¶
func (rt *RealTransactionQuerier) GetDetailedCategories(ctx context.Context) ([]models.DetailedCategory, error)
func (*RealTransactionQuerier) GetDetailedCategoryID ¶
func (*RealTransactionQuerier) GetPrimaryCategories ¶
func (rt *RealTransactionQuerier) GetPrimaryCategories(ctx context.Context) ([]models.PrimaryCategory, error)
func (*RealTransactionQuerier) GetUserTransactionByID ¶
func (rt *RealTransactionQuerier) GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
func (*RealTransactionQuerier) GetUserTransactionsFirstPage ¶
func (rt *RealTransactionQuerier) GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
func (*RealTransactionQuerier) GetUserTransactionsPaginated ¶
func (rt *RealTransactionQuerier) GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
func (*RealTransactionQuerier) UpdateTransactionByID ¶
func (rt *RealTransactionQuerier) UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
type RealTransactionalQuerier ¶
type RealTransactionalQuerier struct {
// contains filtered or unexported fields
}
RealTransactionalQuerier wraps a *Queries to implement SqlTransactionalQuerier.
func (*RealTransactionalQuerier) BeginTx ¶
func (r *RealTransactionalQuerier) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
BeginTx delegates to the underlying *Queries.
func (*RealTransactionalQuerier) CreateDeviceInfo ¶
func (r *RealTransactionalQuerier) CreateDeviceInfo(ctx context.Context, arg CreateDeviceInfoParams) (string, error)
func (*RealTransactionalQuerier) CreateRefreshToken ¶
func (r *RealTransactionalQuerier) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
TokenQuerier methods.
func (*RealTransactionalQuerier) CreateTransaction ¶
func (r *RealTransactionalQuerier) CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
TransactionQuerier methods.
func (*RealTransactionalQuerier) CreateUser ¶
func (r *RealTransactionalQuerier) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*RealTransactionalQuerier) DeleteTransactionByID ¶
func (r *RealTransactionalQuerier) DeleteTransactionByID(ctx context.Context, arg DeleteTransactionByIDParams) (string, error)
func (*RealTransactionalQuerier) GetDetailedCategories ¶
func (r *RealTransactionalQuerier) GetDetailedCategories(ctx context.Context) ([]models.DetailedCategory, error)
func (*RealTransactionalQuerier) GetDetailedCategoryID ¶
func (*RealTransactionalQuerier) GetDeviceInfoByUser ¶
func (r *RealTransactionalQuerier) GetDeviceInfoByUser(ctx context.Context, arg GetDeviceInfoByUserParams) (string, error)
DeviceQuerier methods.
func (*RealTransactionalQuerier) GetPrimaryCategories ¶
func (r *RealTransactionalQuerier) GetPrimaryCategories(ctx context.Context) ([]models.PrimaryCategory, error)
func (*RealTransactionalQuerier) GetRefreshByUserAndDevice ¶
func (r *RealTransactionalQuerier) GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
func (*RealTransactionalQuerier) GetUserByEmail ¶
func (r *RealTransactionalQuerier) GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
func (*RealTransactionalQuerier) GetUserTransactionByID ¶
func (r *RealTransactionalQuerier) GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
func (*RealTransactionalQuerier) GetUserTransactionsFirstPage ¶
func (r *RealTransactionalQuerier) GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
func (*RealTransactionalQuerier) GetUserTransactionsPaginated ¶
func (r *RealTransactionalQuerier) GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
func (*RealTransactionalQuerier) RevokeToken ¶
func (r *RealTransactionalQuerier) RevokeToken(ctx context.Context, arg RevokeTokenParams) error
func (*RealTransactionalQuerier) UpdateTransactionByID ¶
func (r *RealTransactionalQuerier) UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
func (*RealTransactionalQuerier) WithTx ¶
func (r *RealTransactionalQuerier) WithTx(tx *sql.Tx) SqlTransactionalQuerier
WithTx calls the underlying WithTx method and wraps the result.
type RealUserQuerier ¶
type RealUserQuerier struct {
// contains filtered or unexported fields
}
func (*RealUserQuerier) CreateUser ¶
func (ru *RealUserQuerier) CreateUser(ctx context.Context, params CreateUserParams) error
func (*RealUserQuerier) GetUserByEmail ¶
func (ru *RealUserQuerier) GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
type RevokeTokenParams ¶
type SqlTransactionalQuerier ¶
type SqlTransactionalQuerier interface {
SqlTxQuerier
DeviceQuerier
TokenQuerier
TransactionQuerier
UserQuerier
}
func NewRealTransactionalQuerier ¶
func NewRealTransactionalQuerier(q *Queries) SqlTransactionalQuerier
NewRealTransactionalQuerier returns an adapter wrapping the given *Queries.
type SqlTxQuerier ¶
type SqlTxQuerier interface {
WithTx(tx *sql.Tx) SqlTransactionalQuerier
BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
}
func NewRealSqlTxQuerier ¶
func NewRealSqlTxQuerier(q SqlTransactionalQuerier) SqlTxQuerier
type TokenQuerier ¶
type TokenQuerier interface {
CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) error
RevokeToken(ctx context.Context, arg RevokeTokenParams) error
GetRefreshByUserAndDevice(ctx context.Context, arg GetRefreshByUserAndDeviceParams) (models.RefreshToken, error)
}
func NewRealTokenQuerier ¶
func NewRealTokenQuerier(q SqlTransactionalQuerier) TokenQuerier
type TransactionQuerier ¶
type TransactionQuerier interface {
CreateTransaction(ctx context.Context, arg CreateTransactionParams) error
UpdateTransactionByID(ctx context.Context, arg UpdateTransactionByIDParams) (UpdateTransactionByIDRow, error)
DeleteTransactionByID(ctx context.Context, arg DeleteTransactionByIDParams) (string, error)
GetUserTransactionsFirstPage(ctx context.Context, arg GetUserTransactionsFirstPageParams) ([]GetUserTransactionsFirstPageRow, error)
GetUserTransactionsPaginated(ctx context.Context, arg GetUserTransactionsPaginatedParams) ([]GetUserTransactionsPaginatedRow, error)
GetUserTransactionByID(ctx context.Context, arg GetUserTransactionByIDParams) (GetUserTransactionByIDRow, error)
GetPrimaryCategories(ctx context.Context) ([]models.PrimaryCategory, error)
GetDetailedCategories(ctx context.Context) ([]models.DetailedCategory, error)
GetDetailedCategoryID(ctx context.Context, name string) (int64, error)
}
func NewRealTransactionQuerier ¶
func NewRealTransactionQuerier(q SqlTransactionalQuerier) TransactionQuerier
type UserQuerier ¶
type UserQuerier interface {
CreateUser(ctx context.Context, params CreateUserParams) error
GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
}
func NewRealUserQuerier ¶
func NewRealUserQuerier(q SqlTransactionalQuerier) UserQuerier
Source Files
¶
Click to show internal directories.
Click to hide internal directories.