Documentation ¶
Index ¶
- type Account
- type CreateAccountParams
- type CreateUserParams
- type DBTX
- type DeleteAccountParams
- type ListAccountsParams
- type Queries
- func (q *Queries) CreateAccount(ctx context.Context, arg CreateAccountParams) (Account, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteAccount(ctx context.Context, arg DeleteAccountParams) error
- func (q *Queries) FetchUserByUsername(ctx context.Context, email string) (User, error)
- func (q *Queries) ListAccounts(ctx context.Context, arg ListAccountsParams) ([]Account, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SchemaMigration
- type User
- type Withdrawal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID int64 UserID int64 DisplayName pgtype.Text Bank string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type CreateAccountParams ¶
type CreateUserParams ¶
type DeleteAccountParams ¶
type ListAccountsParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAccount ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteAccount ¶
func (q *Queries) DeleteAccount(ctx context.Context, arg DeleteAccountParams) error
func (*Queries) FetchUserByUsername ¶
func (*Queries) ListAccounts ¶
type SchemaMigration ¶
type User ¶
type User struct { ID int64 Username pgtype.Text Name string EncryptedPassword string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type Withdrawal ¶
type Withdrawal struct { ID int64 AccountID int64 AmountCents int32 AmountCurrency string TransactedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
Click to show internal directories.
Click to hide internal directories.