external

package
v1.1.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicEncode

func AtomicEncode(path string, val any) error

AtomicEncode json encodes val to path+".atomic" then moves the path+".atomic" file to path

Types

type Config

type Config struct {
	DataDir     string `json:"data_dir"`
	JWTPath     string `json:"jwt_path"`
	ChainID     uint64 `json:"chain_id"`
	GasCeil     uint64 `json:"gas_ceil"`
	GenesisPath string `json:"genesis_path"`
	Verbosity   uint64 `json:"verbosity"`

	// EndpointsReadyPath is the location to write the endpoint configuration file.
	// Note, this should be written atomically by writing the JSON, then moving
	// it to this path to avoid races.  A helper AtomicEncode is provided for
	// golang clients.
	EndpointsReadyPath string `json:"endpoints_ready_path"`
}

type Endpoints

type Endpoints struct {
	HTTPEndpoint     string `json:"http_endpoint"`
	WSEndpoint       string `json:"ws_endpoint"`
	HTTPAuthEndpoint string `json:"http_auth_endpoint"`
	WSAuthEndpoint   string `json:"ws_auth_endpoint"`
}

type TestParms

type TestParms struct {
	// SkipTests is a map from test name to skip message.  The skip message may
	// be arbitrary, but the test name should match the skipped test (either
	// base, or a sub-test) exactly.  Precisely, the skip name must match rune for
	// rune starting with the first rune.  If the skip name does not match all
	// runes, the first mismatched rune must be a '/'.
	SkipTests map[string]string `json:"skip_tests"`
}

func (TestParms) SkipIfNecessary

func (tp TestParms) SkipIfNecessary(t *testing.T)

Jump to

Keyboard shortcuts

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