Add documentation for Db interface.

This commit is contained in:
Dave Collins 2013-05-31 15:12:20 -05:00
parent 5882b3c79a
commit 8d8fdf4fc1

4
db.go
View file

@ -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()