Documentation ¶
Index ¶
- Constants
- type Database
- func (l *Database) Close() error
- func (l *Database) DB() Pool
- func (l *Database) RawDB() RawPool
- func (l *Database) RegisterNotification(ctx context.Context, n database.NotificationName, ...) error
- func (l *Database) UnregisterNotification(n database.NotificationName) error
- func (l *Database) Version(ctx context.Context) (int, error)
- type Pool
- type RawPool
Constants ¶
View Source
const ( BlockHeadersDB = "blockheaders" BlocksMissingDB = "blocksmissing" MetadataDB = "metadata" HeightHashDB = "heighthash" PeersDB = "peers" OutputsDB = "outputs" TransactionsDB = "transactions" BlocksDB = "blocks" // raw database )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) RegisterNotification ¶
func (l *Database) RegisterNotification(ctx context.Context, n database.NotificationName, f database.NotificationCallback, payload any) error
func (*Database) UnregisterNotification ¶
func (l *Database) UnregisterNotification(n database.NotificationName) error
Click to show internal directories.
Click to hide internal directories.