Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTagEmptyName   = errors.New("Invalid tag, empty name")
	ErrTagEmptyValue  = errors.New("Invalid tag, empty value")
	ErrTagEmptyString = errors.New("Invalid tag, empty string")
)
View Source
var BannerColor = color.New(color.FgCyan)

Functions

func Execute

func Execute()

    Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

    Types

    type Config

    type Config struct {
    	lib.Options
    
    	Out           []string  `json:"out" envconfig:"K6_OUT"`
    	Linger        null.Bool `json:"linger" envconfig:"K6_LINGER"`
    	NoUsageReport null.Bool `json:"noUsageReport" envconfig:"K6_NO_USAGE_REPORT"`
    
    	Collectors struct {
    		InfluxDB influxdb.Config `json:"influxdb"`
    		Kafka    kafka.Config    `json:"kafka"`
    		Cloud    cloud.Config    `json:"cloud"`
    		StatsD   statsd.Config   `json:"statsd"`
    		Datadog  datadog.Config  `json:"datadog"`
    		CSV      csv.Config      `json:"csv"`
    	} `json:"collectors"`
    }

    func (Config) Apply

    func (c Config) Apply(cfg Config) Config

    func (Config) Validate

    func (c Config) Validate() []error

      Validate checks if all of the specified options make sense

      type ExitCode

      type ExitCode struct {
      	Code int
      	Hint string
      	// contains filtered or unexported fields
      }

        ExitCode wraps the error with an exit code. Hint is used to show details information about underlying error.

        type RawFormatter

        type RawFormatter struct{}

          RawFormatter it does nothing with the message just prints it

          func (RawFormatter) Format

          func (f RawFormatter) Format(entry *logrus.Entry) ([]byte, error)

            Format renders a single log entry