Documentation
¶
Index ¶
- func BackfillIntentTxid(ctx context.Context, dbh *sql.DB) error
- func NewAssetRepository(config ...interface{}) (domain.AssetRepository, error)
- func NewConvictionRepository(config ...interface{}) (domain.ConvictionRepository, error)
- func NewEventRepository(config ...interface{}) (domain.EventRepository, error)
- func NewIntentFeesRepository(config ...interface{}) (domain.FeeRepository, error)
- func NewOffchainTxRepository(config ...interface{}) (domain.OffchainTxRepository, error)
- func NewRoundRepository(config ...interface{}) (domain.RoundRepository, error)
- func NewScheduledSessionRepository(config ...interface{}) (domain.ScheduledSessionRepo, error)
- func NewVtxoRepository(config ...interface{}) (domain.VtxoRepository, error)
- func OpenDb(dsn string, autoCreate bool, opts ...Option) (*sql.DB, error)
- type ConnectionConfig
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackfillIntentTxid ¶ added in v0.9.0
func NewAssetRepository ¶ added in v0.9.0
func NewAssetRepository(config ...interface{}) (domain.AssetRepository, error)
func NewConvictionRepository ¶ added in v0.8.0
func NewConvictionRepository(config ...interface{}) (domain.ConvictionRepository, error)
func NewEventRepository ¶
func NewEventRepository(config ...interface{}) (domain.EventRepository, error)
func NewIntentFeesRepository ¶ added in v0.8.11
func NewIntentFeesRepository(config ...interface{}) (domain.FeeRepository, error)
func NewOffchainTxRepository ¶
func NewOffchainTxRepository(config ...interface{}) (domain.OffchainTxRepository, error)
func NewRoundRepository ¶
func NewRoundRepository(config ...interface{}) (domain.RoundRepository, error)
func NewScheduledSessionRepository ¶ added in v0.8.0
func NewScheduledSessionRepository(config ...interface{}) (domain.ScheduledSessionRepo, error)
func NewVtxoRepository ¶
func NewVtxoRepository(config ...interface{}) (domain.VtxoRepository, error)
func OpenDb ¶
OpenDb opens a connection with the DB.
By default, it uses sensible connection pool settings. These can be optionally overridden by providing a WithConnectionConfig option.
If the operation fails when trying to establish a connection and the `autoCreate` flag is set to true, OpenDb will try to create the database specified in the DSN.
Types ¶
type ConnectionConfig ¶ added in v0.9.4
type Option ¶ added in v0.9.4
type Option func(*ConnectionConfig)
func WithConnectionConfig ¶ added in v0.9.4
func WithConnectionConfig(cfg ConnectionConfig) Option
Source Files
¶
Click to show internal directories.
Click to hide internal directories.