state

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecOutputStorageState

type ExecOutputStorageState struct {
	ModuleName string

	SegmentsPresent block.Ranges
	SegmentsMissing block.Ranges
}

func NewExecOutputStorageState

func NewExecOutputStorageState(config *execout.Config, saveInterval, requestStartBlock, linearHandoffBlock uint64, snapshots block.Ranges) (out *ExecOutputStorageState, err error)

func (ExecOutputStorageState) BatchRequests

func (m ExecOutputStorageState) BatchRequests(subRequestSplitSize uint64) block.Ranges

func (ExecOutputStorageState) InitialProgressRanges

func (m ExecOutputStorageState) InitialProgressRanges() block.Ranges

func (ExecOutputStorageState) Name

func (m ExecOutputStorageState) Name() string

func (ExecOutputStorageState) ReadyUpToBlock

func (m ExecOutputStorageState) ReadyUpToBlock() uint64

type SnapshotsMap

type SnapshotsMap struct {
	sync.Mutex
	Snapshots map[string]block.Ranges
}

func FetchMappersState

func FetchMappersState(ctx context.Context, configs *execout.Configs) (*SnapshotsMap, error)

func (*SnapshotsMap) String

func (s *SnapshotsMap) String() string

Jump to

Keyboard shortcuts

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