Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTransactionRow ¶
type GetTransactionRow struct { ID pgtype.UUID LastUpdatingUser pgtype.UUID Type NullTransactionType CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz ID_2 pgtype.UUID UserID pgtype.UUID Direction NullLedgerDirection AmountCurrencyCode string AmountUnits int64 AmountNanos int32 TransactionID pgtype.UUID CreatedAt_2 pgtype.Timestamptz UpdatedAt_2 pgtype.Timestamptz }
type Ledger ¶
type Ledger struct { ID pgtype.UUID UserID pgtype.UUID Direction NullLedgerDirection AmountCurrencyCode string AmountUnits int64 AmountNanos int32 TransactionID pgtype.UUID CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type LedgerDirection ¶
type LedgerDirection string
const ( LedgerDirectionIN LedgerDirection = "IN" LedgerDirectionOUT LedgerDirection = "OUT" )
func (*LedgerDirection) Scan ¶
func (e *LedgerDirection) Scan(src interface{}) error
type NullLedgerDirection ¶
type NullLedgerDirection struct { LedgerDirection LedgerDirection Valid bool // Valid is true if LedgerDirection is not NULL }
func (*NullLedgerDirection) Scan ¶
func (ns *NullLedgerDirection) Scan(value interface{}) error
Scan implements the Scanner interface.
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) GetTransaction ¶
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.