Documentation ¶
Index ¶
- type Store
- func (s *Store) Close()
- func (s *Store) CreateLedgerID(ledgerID string, gb *common.Block) error
- func (s *Store) GetActiveLedgerIDs() ([]string, error)
- func (s *Store) GetFormat() ([]byte, error)
- func (s *Store) GetGenesisBlock(ledgerID string) (*common.Block, error)
- func (s *Store) GetUnderConstructionFlag() (string, error)
- func (s *Store) LedgerIDActive(ledgerID string) (active bool, exists bool, err error)
- func (s *Store) LedgerIDExists(ledgerID string) (bool, error)
- func (s *Store) SetUnderConstructionFlag(ledgerID string) error
- func (s *Store) UnsetUnderConstructionFlag() error
- func (s *Store) UpdateLedgerStatus(ledgerID string, newStatus msgs.Status) error
- func (s *Store) UpgradeFormat() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contain couchdb instance
func OpenIDStore ¶
OpenIDStore return id store
func (*Store) CreateLedgerID ¶
CreateLedgerID create ledger id
func (*Store) GetActiveLedgerIDs ¶ added in v0.1.1
GetActiveLedgerIDs returns the active ledger IDs
func (*Store) GetGenesisBlock ¶ added in v0.1.1
GetGenesisBlock returns the genesis block for the given ledger ID
func (*Store) GetUnderConstructionFlag ¶
GetUnderConstructionFlag get under construction flag
func (*Store) LedgerIDActive ¶ added in v0.1.1
LedgerIDActive tests whether a ledger ID exists and is active
func (*Store) LedgerIDExists ¶
LedgerIDExists check ledger id exists
func (*Store) SetUnderConstructionFlag ¶
SetUnderConstructionFlag set under construction flag
func (*Store) UnsetUnderConstructionFlag ¶
UnsetUnderConstructionFlag unset under construction flag
func (*Store) UpdateLedgerStatus ¶ added in v0.1.1
UpdateLedgerStatus sets the status of the given ledger
func (*Store) UpgradeFormat ¶ added in v0.1.1
UpgradeFormat upgrades the database format
Click to show internal directories.
Click to hide internal directories.