From 8d8fdf4fc1c169f90f9717f31eea2426065f8420 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 31 May 2013 15:12:20 -0500 Subject: [PATCH] Add documentation for Db interface. --- db.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db.go b/db.go index 8d8aaf38..e6ef8e87 100644 --- a/db.go +++ b/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()