Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_TABLE = "service_status"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LatestStatus ¶
type LatestStatus struct {
LastIndexedBlockHeight int64 `json:"last_indexed_block_height"`
}
type RDbStatusStore ¶
type RDbStatusStore struct {
// contains filtered or unexported fields
}
status store implemented using relational database
func NewRDbStatusStore ¶
func NewRDbStatusStore(rdbHandle *rdb.Handle) *RDbStatusStore
func (*RDbStatusStore) GetLastIndexedBlockHeight ¶
func (impl *RDbStatusStore) GetLastIndexedBlockHeight() (*int64, error)
Return last indexed block height, nil if no block has been indexed
func (*RDbStatusStore) UpdateLastIndexedBlockHeightWithRDbHandle ¶
func (impl *RDbStatusStore) UpdateLastIndexedBlockHeightWithRDbHandle(rdbHandle *rdb.Handle, height int64) error
Click to show internal directories.
Click to hide internal directories.