config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: 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 RuntimeConfig

type RuntimeConfig struct {
	CacheSaveInterval uint64

	MaxWasmFuel          uint64 // if not 0, enable fuel consumption monitoring to stop runaway wasm module processing forever
	SubrequestsSplitSize uint64 // in multiple of the SaveIntervals above
	ParallelSubrequests  uint64 // how many sub-jobs to launch for a given user
	// derives substores `states/`, for `store` modules snapshots (full and partial)
	// and `outputs/` for execution output of both `map` and `store` module kinds
	BaseObjectStore  dstore.Store
	WorkerFactory    work.WorkerFactory
	WithRequestStats bool
}

func NewRuntimeConfig

func NewRuntimeConfig(
	cacheSaveInterval uint64,
	subrequestsSplitSize uint64,
	parallelSubrequests uint64,
	MaxWasmFuel uint64,
	baseObjectStore dstore.Store,
	workerFactory work.WorkerFactory,
) RuntimeConfig

Jump to

Keyboard shortcuts

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