rdbstatusstore

package
v1.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL