Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedMemory ¶
type SharedMemory struct {
// contains filtered or unexported fields
}
SharedMemory is a in-memory thread-safe data structure to exchange data between the validator and gateway.
func NewSharedMemory ¶
func NewSharedMemory() *SharedMemory
NewSharedMemory creates new SharedMemory object.
func (*SharedMemory) GetLastSeenBlockNumber ¶
func (sm *SharedMemory) GetLastSeenBlockNumber(chainID tableland.ChainID) (int64, bool)
GetLastSeenBlockNumber get the last seen block number of a specific chain.
func (*SharedMemory) SetLastSeenBlockNumber ¶
func (sm *SharedMemory) SetLastSeenBlockNumber(chainID tableland.ChainID, blockNumber int64)
SetLastSeenBlockNumber sets the last seen block number of a specific chain.
Click to show internal directories.
Click to hide internal directories.