Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commitment ¶
type DatabaseImpl ¶
type DatabaseImpl struct {
// contains filtered or unexported fields
}
DatabaseImpl struct implements the Database Interface with an underlying DB
func (*DatabaseImpl) GetCommitment ¶
func (db *DatabaseImpl) GetCommitment(id string) (*Commitment, error)
func (*DatabaseImpl) InsertCommitment ¶
func (db *DatabaseImpl) InsertCommitment(commitment Commitment) error
func (*DatabaseImpl) InsertMembers ¶
func (db *DatabaseImpl) InsertMembers(members []Member) error
type MapImpl ¶
MapImpl struct implements the database interface with an underlying Map
func (*MapImpl) GetCommitment ¶
func (db *MapImpl) GetCommitment(id string) (*Commitment, error)
func (*MapImpl) InsertCommitment ¶
func (db *MapImpl) InsertCommitment(commitment Commitment) error
func (*MapImpl) InsertMembers ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage struct is the API for the storage package
func NewStorage ¶
NewStorage creates a new Storage object wrapping a database interface Returns a Storage object, and error
Click to show internal directories.
Click to hide internal directories.