sharedmemory

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT, Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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