Add documentation for Db interface.
This commit is contained in:
parent
5882b3c79a
commit
8d8fdf4fc1
1 changed files with 4 additions and 0 deletions
4
db.go
4
db.go
|
@ -37,6 +37,10 @@ const (
|
||||||
InsertValidatedInput
|
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 {
|
type Db interface {
|
||||||
// Close cleanly shuts down the database and syncs all data.
|
// Close cleanly shuts down the database and syncs all data.
|
||||||
Close()
|
Close()
|
||||||
|
|
Loading…
Reference in a new issue