package
Version:
v0.0.0-...-92cf2b6
Opens a new window with list of versions in this module.
Published: Oct 25, 2018
License: BSD-2-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package db contains common interface that all implementations under db directory
must satisfy.
type DB interface {
Begin() (Tx, error)
}
DB is a general interface for arbitrary database type.
type Deleter interface {
Delete(v interface{}) error
}
Deleter provides the Delete method to delete an object.
type Storer interface {
Store(v interface{}) error
}
Storer provides the Store method to store an object parsed from an HTTP
response.
Tx is a transaction interface that provides methods for storing objects,
commit or rollback changes. Tx's implementation must allow concurrent use.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.