config

package
v0.0.0-...-85596be Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Jobs         []*job.Job                `json:"jobs"`
	Concurrency  int                       `json:"concurrency"`
	Datastore    *datastore.Connection     `json:"datastore"`
	Notification notification.Notification `json:"notification"`
}

Stores the testing configuration

func Parse

func Parse(filepath string) (*Config, error)

Parses the specified config file and loads the data into a config object

type Envelope

type Envelope struct {
	Type string           `json:"type"`
	Msg  *json.RawMessage `json:"msg"`
}

intermediate data structure for reading in dynamic json

type Pre

type Pre struct {
	Jobs         []*job.Job            `json:"jobs"`
	Concurrency  int                   `json:"concurrency"`
	Datastore    *datastore.Connection `json:"datastore"`
	Notification Envelope              `json:"notification"`
}

Config before unpacking the envelopes

Jump to

Keyboard shortcuts

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