Documentation ¶
Index ¶
- Constants
- func DbCoinToPbCoin(coin db.CoinType) (pb_v1.CoinType, error)
- func DbInvoiceStatusToPbInvoiceStatus(status db.InvoiceStatusType) (pb_v1.InvoiceStatusType, error)
- func DbInvoiceToPbInvoice(invoice *db.Invoice) *pb_v1.Invoice
- func InitDbQueriesWithTx(ctx context.Context, dbConnPool *pgxpool.Pool) (*db.Queries, pgx.Tx, error)
- func PbCoinToDbCoin(coin pb_v1.CoinType) (db.CoinType, error)
- func PbNewInvoiceToProcessorNewInvoice(req *pb_v1.CreateInvoiceRequest) *dto.NewInvoiceRequest
- func PgUUIDToString(uuid pgtype.UUID) string
- func StringToPgUUID(uuidStr string) (*pgtype.UUID, error)
- type SyncMapTypeSafe
- func (m *SyncMapTypeSafe[K, V]) Delete(key K)
- func (m *SyncMapTypeSafe[K, V]) Load(key K) (value V, ok bool)
- func (m *SyncMapTypeSafe[K, V]) LoadAndDelete(key K) (value V, loaded bool)
- func (m *SyncMapTypeSafe[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool)
- func (m *SyncMapTypeSafe[K, V]) Range(f func(key K, value V) bool)
- func (m *SyncMapTypeSafe[K, V]) Store(key K, value V)
Constants ¶
View Source
const ( DefaultFailedSqlTxInitMsg string = "An error occurred while initiating an SQL transaction." DefaultFailedSqlQueryMsg string = "An error occurred while executing a SQL query." DefaultFailedScanningToPostgresqlDataTypeMsg string = "An error occurred while scanning the value into a PostgreSQL data type." DefaultFailedFetchingXMRDaemonMsg string = "An error occurred while fetching." )
View Source
const (
SEND_TIMEOUT time.Duration = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func DbInvoiceStatusToPbInvoiceStatus ¶
func DbInvoiceStatusToPbInvoiceStatus(status db.InvoiceStatusType) (pb_v1.InvoiceStatusType, error)
func InitDbQueriesWithTx ¶
func PbNewInvoiceToProcessorNewInvoice ¶
func PbNewInvoiceToProcessorNewInvoice(req *pb_v1.CreateInvoiceRequest) *dto.NewInvoiceRequest
func PgUUIDToString ¶
Types ¶
type SyncMapTypeSafe ¶
func (*SyncMapTypeSafe[K, V]) Delete ¶
func (m *SyncMapTypeSafe[K, V]) Delete(key K)
func (*SyncMapTypeSafe[K, V]) Load ¶
func (m *SyncMapTypeSafe[K, V]) Load(key K) (value V, ok bool)
func (*SyncMapTypeSafe[K, V]) LoadAndDelete ¶
func (m *SyncMapTypeSafe[K, V]) LoadAndDelete(key K) (value V, loaded bool)
func (*SyncMapTypeSafe[K, V]) LoadOrStore ¶
func (m *SyncMapTypeSafe[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool)
func (*SyncMapTypeSafe[K, V]) Range ¶
func (m *SyncMapTypeSafe[K, V]) Range(f func(key K, value V) bool)
func (*SyncMapTypeSafe[K, V]) Store ¶
func (m *SyncMapTypeSafe[K, V]) Store(key K, value V)
Click to show internal directories.
Click to hide internal directories.