Help us shape the future of Go! Take the 2026 Go Developer Survey

rdbstatusstore

package
v1.7.28 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 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