workloadcfg

package
v0.0.0-...-48104ab Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestCfg

type RequestCfg struct {
	Type       string
	Dataset    *datacfg.DatasetCfg
	Calculator *datacfg.CalculatorCfg
}

RequestCfg is a representation of request in workload config

type RequestCfgYAML

type RequestCfgYAML struct {
	Type       string
	Dataset    string
	Calculator string
}

RequestCfgYAML is for parse requests segments in workload YAML config

func (RequestCfgYAML) Parse

func (requestYAML RequestCfgYAML) Parse(dataCfg *datacfg.DataCfg) *RequestCfg

Parse transforms RequestCfgYAML to RequestCfg

type WorkloadCfg

type WorkloadCfg struct {
	Name     string
	Data     *datacfg.DataCfg
	Requests map[int][]*RequestCfg
}

WorkloadCfg is a representation of workload config

func Load

func Load(workloadFilename string) *WorkloadCfg

Load parses workload config

type YAML

type YAML struct {
	Name     string
	Data     string
	Requests map[int][]RequestCfgYAML
}

YAML is a representation of workload yaml file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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