model

package
v0.0.0-...-399e6d5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Logging   LogLevel  `yaml:"logging"`
	LogFormat LogFormat `yaml:"logFormat"`
}

type Configuration

type Configuration struct {
	App          AppConfig          `yaml:"app"`
	Suites       []SuiteConfig      `yaml:"suites"`
	UserProvider UserProviderConfig `yaml:"userProvider"`
	Intermediary IntermediaryConfig `yaml:"intermediary"`
}

type Distribution

type Distribution string

func (*Distribution) GetAmounts

func (d *Distribution) GetAmounts(total api.Amount) ([]api.Amount, api.Error)

type HttpClientConfig

type HttpClientConfig struct {
	Timeout             time.Duration `yaml:"timeout"`
	MaxConnsPerHost     int           `yaml:"maxConnsPerHost"`
	MaxIdleConnsPerHost int           `yaml:"maxIdleConnsPerHost"`
}

type IntermediaryConfig

type IntermediaryConfig struct {
	DelayAfterInitiation time.Duration `yaml:"delayAfterInitiation"`
}

type IssueConfig

type IssueConfig struct {
	Total        api.Amount   `yaml:"total"`
	Distribution Distribution `yaml:"distribution"`
	Execute      bool         `yaml:"execute"`
}

type LogFormat

type LogFormat string

LogFormat String defining a log format.

type LogLevel

type LogLevel string

LogLevel String defining a log level.

type SuiteConfig

type SuiteConfig struct {
	Name             string        `yaml:"name"`
	PoolSize         int           `yaml:"poolSize"`
	Iterations       int           `yaml:"iterations"`
	Delay            time.Duration `yaml:"delay"`
	Cases            []TestCase    `yaml:"cases"`
	UseExistingFunds bool          `yaml:"useExistingFunds"`
}

type TestCase

type TestCase struct {
	Name     string         `yaml:"name"`
	Payer    UserAlias      `yaml:"payer"`
	Payees   []UserAlias    `yaml:"payees"`
	Issue    IssueConfig    `yaml:"issue"`
	Transfer TransferConfig `yaml:"transfer"`
}

type TransferConfig

type TransferConfig struct {
	Distribution Distribution `yaml:"distribution"`
	Execute      bool         `yaml:"execute"`
}

type UserAlias

type UserAlias = string

type UserConfig

type UserConfig struct {
	Name     UserAlias `yaml:"name"`
	Username Username  `yaml:"username"`
	Password string    `yaml:"password"`
	Endpoint string    `yaml:"endpoint"`
}

type UserProviderConfig

type UserProviderConfig struct {
	Users      []UserConfig     `yaml:"users"`
	HttpClient HttpClientConfig `yaml:"httpClient"`
}

type Username

type Username = string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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