Documentation ¶
Index ¶
- func NewDBReader(levelBolt string, path string) *databaseOverlay.Overlay
- type APIReader
- func (a *APIReader) FetchDBlockByHeight(dBlockHeight uint32) (interfaces.IDirectoryBlock, error)
- func (a *APIReader) FetchDBlockHead() (interfaces.IDirectoryBlock, error)
- func (a *APIReader) FetchEBlock(hash interfaces.IHash) (interfaces.IEntryBlock, error)
- func (a *APIReader) FetchHeadIndexByChainID(chainID interfaces.IHash) (interfaces.IHash, error)
- func (a *APIReader) SetChainHeads(primaryIndexes, chainIDs []interfaces.IHash) error
- type Fetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBReader ¶
func NewDBReader(levelBolt string, path string) *databaseOverlay.Overlay
Types ¶
type APIReader ¶
type APIReader struct {
// contains filtered or unexported fields
}
func NewAPIReader ¶
func (*APIReader) FetchDBlockByHeight ¶
func (a *APIReader) FetchDBlockByHeight(dBlockHeight uint32) (interfaces.IDirectoryBlock, error)
func (*APIReader) FetchDBlockHead ¶
func (a *APIReader) FetchDBlockHead() (interfaces.IDirectoryBlock, error)
func (*APIReader) FetchEBlock ¶
func (a *APIReader) FetchEBlock(hash interfaces.IHash) (interfaces.IEntryBlock, error)
func (*APIReader) FetchHeadIndexByChainID ¶
func (a *APIReader) FetchHeadIndexByChainID(chainID interfaces.IHash) (interfaces.IHash, error)
func (*APIReader) SetChainHeads ¶
func (a *APIReader) SetChainHeads(primaryIndexes, chainIDs []interfaces.IHash) error
type Fetcher ¶
type Fetcher interface { FetchDBlockHead() (interfaces.IDirectoryBlock, error) FetchDBlockByHeight(dBlockHeight uint32) (interfaces.IDirectoryBlock, error) //FetchDBlock(hash interfaces.IHash) (interfaces.IDirectoryBlock, error) FetchHeadIndexByChainID(chainID interfaces.IHash) (interfaces.IHash, error) FetchEBlock(hash interfaces.IHash) (interfaces.IEntryBlock, error) SetChainHeads(primaryIndexes, chainIDs []interfaces.IHash) error }
Able to be either a datbase or api
Click to show internal directories.
Click to hide internal directories.