knockdown

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(config Config, kdr Receiver) int

Main should be called by the process' main function. It will run the knockdown test. The return value MUST be used in os.Exit().

Types

type Config

type Config struct {
	Time time.Duration `envconfig:"TIME" required:"true"`
}

Config is a common envconfig filled struct that includes the common options for knockdown testing. It is expected that knockdown tests will embed this struct in their configuration struct. E.g.

type FooKnockdownConfig {
    knockdown.Config
    FooProperty string `envconfig:...`
}

type Receiver

type Receiver interface {
	Knockdown(event cloudevents.Event) bool
}

Jump to

Keyboard shortcuts

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