functions

package
v0.0.0-...-692deea Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrReadPerfConfig      = "failed to read TOML config for performance tests"
	ErrUnmarshalPerfConfig = "failed to unmarshal TOML config for performance tests"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	NodeFunds                       *big.Float `toml:"node_funds"`
	SubFunds                        *big.Int   `toml:"sub_funds"`
	LINKTokenAddr                   *string    `toml:"link_token_addr"`
	Coordinator                     *string    `toml:"coordinator_addr"`
	Router                          *string    `toml:"router_addr"`
	LoadTestClient                  *string    `toml:"client_addr"`
	SubscriptionID                  *uint64    `toml:"subscription_id"`
	DONID                           *string    `toml:"don_id"`
	GatewayURL                      *string    `toml:"gateway_url"`
	Receiver                        *string    `toml:"receiver"`
	FunctionsCallPayloadHTTP        *string    `toml:"functions_call_payload_http"`
	FunctionsCallPayloadWithSecrets *string    `toml:"functions_call_payload_with_secrets"`
	FunctionsCallPayloadReal        *string    `toml:"functions_call_payload_real"`
	SecretsSlotID                   *uint8     `toml:"secrets_slot_id"`
	SecretsVersionID                *uint64    `toml:"secrets_version_id"`
	// Secrets these are for CI secrets
	Secrets *string `toml:"secrets"`
}

func (*Common) Validate

func (c *Common) Validate() error

type Config

type Config struct {
	Performance *Performance `toml:"Performance"`
	Common      *Common      `toml:"Common"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Performance

type Performance struct {
	RPS             *int64                  `toml:"rps"`
	RequestsPerCall *uint32                 `toml:"requests_per_call"`
	Duration        *blockchain.StrDuration `toml:"duration"`
}

func (*Performance) Validate

func (c *Performance) Validate() error

Jump to

Keyboard shortcuts

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