internal

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle()

func Initialize

func Initialize()

Types

type Config

type Config struct {
	Debug   bool          `yaml:"debug"`
	Delay   time.Duration `yaml:"delay"`
	Retries uint          `yaml:"retries"`
	Tests   Tests         `yaml:"tests"`
	DSN     pg.Dsn        `yaml:"dsn"`
	// contains filtered or unexported fields
}

func (Config) Name added in v0.3.0

func (c Config) Name() (name string)

type Configs added in v0.3.0

type Configs []Config

func GetConfigs added in v0.3.0

func GetConfigs() (configs Configs, err error)

func NewConfigsFromFile added in v0.3.0

func NewConfigsFromFile(path string) (c Configs, err error)

func NewConfigsFromReader added in v0.3.0

func NewConfigsFromReader(reader io.Reader, name string) (configs Configs, err error)

func NewConfigsFromStdin added in v0.3.0

func NewConfigsFromStdin() (configs Configs, err error)

func ReadFromFileOrDir added in v0.3.0

func ReadFromFileOrDir(path string) (configs Configs, err error)

ReadFromFileOrDir returns an array of Configs parsed from all yaml files, found while recursively walking through a directory, while following symlinks as needed.

type Test

type Test struct {
	Name    string     `yaml:"name"`
	Query   string     `yaml:"query"`
	Results pg.Results `yaml:"results"`
	Reverse bool       `yaml:"reverse"`
}

func (*Test) IncreaseOnError added in v0.3.0

func (t *Test) IncreaseOnError() (increase int)

func (*Test) IncreaseOnSuccess added in v0.3.0

func (t *Test) IncreaseOnSuccess() (increase int)

func (*Test) MsgOnError added in v0.3.0

func (t *Test) MsgOnError() (msg string)

func (*Test) MsgOnSuccess added in v0.3.0

func (t *Test) MsgOnSuccess() (msg string)

func (*Test) Validate

func (t *Test) Validate() (err error)

type Tests

type Tests []Test

Jump to

Keyboard shortcuts

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