Documentation ¶
Index ¶
- type Account
- type CreateAccountParams
- type CreateEntryParams
- type CreateFriendParams
- type CreateTransferParams
- type CreateUserParams
- type CreateVerifyEmailParams
- type DBTX
- type Entry
- type Friendship
- type ListAccountsParams
- type ListEntriesParams
- type ListFriendsParams
- type ListTransfersParams
- type Querier
- type Queries
- func (q *Queries) CreateAccount(ctx context.Context, arg CreateAccountParams) (Account, error)
- func (q *Queries) CreateEntry(ctx context.Context, arg CreateEntryParams) (Entry, error)
- func (q *Queries) CreateFriend(ctx context.Context, arg CreateFriendParams) (Friendship, error)
- func (q *Queries) CreateTransfer(ctx context.Context, arg CreateTransferParams) (Transfer, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateVerifyEmail(ctx context.Context, arg CreateVerifyEmailParams) (VerifyEmail, error)
- func (q *Queries) DeleteAccount(ctx context.Context, id int64) error
- func (q *Queries) GetAccount(ctx context.Context, id int64) (Account, error)
- func (q *Queries) GetAccountForUpdate(ctx context.Context, id int64) (Account, error)
- func (q *Queries) GetEntry(ctx context.Context, id int64) (Entry, error)
- func (q *Queries) GetFriend(ctx context.Context, id int64) (Friendship, error)
- func (q *Queries) GetTransfer(ctx context.Context, id int64) (Transfer, error)
- func (q *Queries) GetUser(ctx context.Context, username string) (User, error)
- func (q *Queries) ListAccounts(ctx context.Context, arg ListAccountsParams) ([]Account, error)
- func (q *Queries) ListEntries(ctx context.Context, arg ListEntriesParams) ([]Entry, error)
- func (q *Queries) ListFriends(ctx context.Context, arg ListFriendsParams) ([]Friendship, error)
- func (q *Queries) ListTransfers(ctx context.Context, arg ListTransfersParams) ([]Transfer, error)
- func (q *Queries) UpdateAccountBalance(ctx context.Context, arg UpdateAccountBalanceParams) (Account, error)
- func (q *Queries) UpdateAccountName(ctx context.Context, arg UpdateAccountNameParams) (Account, error)
- func (q *Queries) UpdateFriend(ctx context.Context, arg UpdateFriendParams) (Friendship, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) UpdateVerifyEmail(ctx context.Context, arg UpdateVerifyEmailParams) (VerifyEmail, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Transfer
- type UpdateAccountBalanceParams
- type UpdateAccountNameParams
- type UpdateFriendParams
- type UpdateUserParams
- type UpdateVerifyEmailParams
- type User
- type VerifyEmail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAccountParams ¶
type CreateEntryParams ¶
type CreateFriendParams ¶
type CreateTransferParams ¶
type CreateUserParams ¶
type CreateVerifyEmailParams ¶
type Friendship ¶
type ListAccountsParams ¶
type ListEntriesParams ¶
type ListFriendsParams ¶
type ListTransfersParams ¶
type Querier ¶
type Querier interface { CreateAccount(ctx context.Context, arg CreateAccountParams) (Account, error) CreateEntry(ctx context.Context, arg CreateEntryParams) (Entry, error) CreateFriend(ctx context.Context, arg CreateFriendParams) (Friendship, error) CreateTransfer(ctx context.Context, arg CreateTransferParams) (Transfer, error) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) CreateVerifyEmail(ctx context.Context, arg CreateVerifyEmailParams) (VerifyEmail, error) DeleteAccount(ctx context.Context, id int64) error GetAccount(ctx context.Context, id int64) (Account, error) GetAccountForUpdate(ctx context.Context, id int64) (Account, error) GetEntry(ctx context.Context, id int64) (Entry, error) GetFriend(ctx context.Context, id int64) (Friendship, error) GetTransfer(ctx context.Context, id int64) (Transfer, error) GetUser(ctx context.Context, username string) (User, error) ListAccounts(ctx context.Context, arg ListAccountsParams) ([]Account, error) ListEntries(ctx context.Context, arg ListEntriesParams) ([]Entry, error) ListFriends(ctx context.Context, arg ListFriendsParams) ([]Friendship, error) ListTransfers(ctx context.Context, arg ListTransfersParams) ([]Transfer, error) UpdateAccountBalance(ctx context.Context, arg UpdateAccountBalanceParams) (Account, error) UpdateAccountName(ctx context.Context, arg UpdateAccountNameParams) (Account, error) UpdateFriend(ctx context.Context, arg UpdateFriendParams) (Friendship, error) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error) UpdateVerifyEmail(ctx context.Context, arg UpdateVerifyEmailParams) (VerifyEmail, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAccount ¶
func (*Queries) CreateEntry ¶
func (*Queries) CreateFriend ¶
func (q *Queries) CreateFriend(ctx context.Context, arg CreateFriendParams) (Friendship, error)
func (*Queries) CreateTransfer ¶
func (*Queries) CreateUser ¶
func (*Queries) CreateVerifyEmail ¶
func (q *Queries) CreateVerifyEmail(ctx context.Context, arg CreateVerifyEmailParams) (VerifyEmail, error)
func (*Queries) DeleteAccount ¶
func (*Queries) GetAccount ¶
func (*Queries) GetAccountForUpdate ¶
func (*Queries) GetTransfer ¶
func (*Queries) ListAccounts ¶
func (*Queries) ListEntries ¶
func (*Queries) ListFriends ¶
func (q *Queries) ListFriends(ctx context.Context, arg ListFriendsParams) ([]Friendship, error)
func (*Queries) ListTransfers ¶
func (*Queries) UpdateAccountBalance ¶
func (*Queries) UpdateAccountName ¶
func (*Queries) UpdateFriend ¶
func (q *Queries) UpdateFriend(ctx context.Context, arg UpdateFriendParams) (Friendship, error)
func (*Queries) UpdateUser ¶
func (*Queries) UpdateVerifyEmail ¶
func (q *Queries) UpdateVerifyEmail(ctx context.Context, arg UpdateVerifyEmailParams) (VerifyEmail, error)
type UpdateAccountNameParams ¶
type UpdateFriendParams ¶
type UpdateUserParams ¶
type UpdateVerifyEmailParams ¶
Click to show internal directories.
Click to hide internal directories.