Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoadTestManifestEmpty = sdkerrors.Register(codespace, 2100, "empty load test manifest") ErrLoadTestManifestUnmarshalYAML = sdkerrors.Register(codespace, 2101, "manifest reader cannot unmarshal yaml content") ErrEphemeralChainLoadTestInvalidManifest = sdkerrors.Register(codespace, 2102, "invalid ephemeral chain load test manifest") ErrNonEphemeralChainLoadTestInvalidManifest = sdkerrors.Register(codespace, 2103, "invalid non-ephemeral chain load test manifest") )
Functions ¶
This section is empty.
Types ¶
type LoadTestManifestYAML ¶
type LoadTestManifestYAML struct { // IsEphemeralChain is a flag that indicates whether the test is expected to be // run on LocalNet or long-living remote chain (i.e. TestNet/DevNet). IsEphemeralChain bool `yaml:"is_ephemeral_chain"` RPCNode string `yaml:"rpc_node"` ServiceId string `yaml:"service_id"` Suppliers []ProvisionedActorConfig `yaml:"suppliers"` Gateways []ProvisionedActorConfig `yaml:"gateways"` FundingAccountAddress string `yaml:"funding_account_address"` }
LoadTestManifestYAML is the struct which the load test manifest is deserialized into. It contains the list of suppliers and gateways that the load test expects to be pre-provisioned.
func ParseLoadTestManifest ¶
func ParseLoadTestManifest(manifestContent []byte) (*LoadTestManifestYAML, error)
ParseLoadTestManifest reads the load test manifest from the given byte slice and returns the parsed LoadTestManifestYAML struct. It returns an error if the manifest is empty, or if it fails to unmarshal.
type ProvisionedActorConfig ¶
type ProvisionedActorConfig struct { // The address used to identify the actor. In an ephemeral chain, the corresponding // account must be present in the keyring to be able to stake. Address string `yaml:"address"` // ExposedUrl is the URL where the actor is expected to be reachable. ExposedUrl string `yaml:"exposed_url"` }
ProvisionedActorConfig is used to represent the signing key used & URL exposed by the pre-provisioned gateway & supplier actors that the load test expects.
Click to show internal directories.
Click to hide internal directories.