Documentation
¶
Index ¶
- type CreateShareParams
- type CreateTransactionParams
- type DBTX
- type GetTransactionAndSharesRow
- type NullTransactionType
- type Queries
- func (q *Queries) CreateShare(ctx context.Context, arg CreateShareParams) (Share, error)
- func (q *Queries) CreateTransaction(ctx context.Context, arg CreateTransactionParams) (Transaction, error)
- func (q *Queries) GetTransactionAndShares(ctx context.Context, id pgtype.UUID) ([]GetTransactionAndSharesRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Share
- type Transaction
- type TransactionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateShareParams ¶
type CreateShareParams struct {}
type CreateTransactionParams ¶
type CreateTransactionParams struct { Type NullTransactionType LastUpdatingUser pgtype.UUID }
type GetTransactionAndSharesRow ¶
type GetTransactionAndSharesRow struct {}
type NullTransactionType ¶
type NullTransactionType struct { TransactionType TransactionType Valid bool // Valid is true if TransactionType is not NULL }
func (*NullTransactionType) Scan ¶
func (ns *NullTransactionType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateShare ¶
func (*Queries) CreateTransaction ¶
func (q *Queries) CreateTransaction(ctx context.Context, arg CreateTransactionParams) (Transaction, error)
func (*Queries) GetTransactionAndShares ¶
type Transaction ¶
type Transaction struct { ID pgtype.UUID LastUpdatingUser pgtype.UUID Type NullTransactionType CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type TransactionType ¶
type TransactionType string
const ( TransactionTypePayment TransactionType = "payment" TransactionTypeSettlement TransactionType = "settlement" )
func (*TransactionType) Scan ¶
func (e *TransactionType) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.