mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Add documentation for Db interface.
This commit is contained in:
parent
5882b3c79a
commit
8d8fdf4fc1
4
db.go
4
db.go
@ -37,6 +37,10 @@ const (
|
||||
InsertValidatedInput
|
||||
)
|
||||
|
||||
// Db defines a generic interface that is used to request and insert data into
|
||||
// the bitcoin block chain. This interface is intended to be agnostic to actual
|
||||
// mechanism used for backend data storage. The AddDBDriver function can be
|
||||
// used to add a new backend data storage method.
|
||||
type Db interface {
|
||||
// Close cleanly shuts down the database and syncs all data.
|
||||
Close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user