config

package
v0.0.0-...-1e40bc2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version    string     `mapstructure:"version"`
	DiodeAgent DiodeAgent `mapstructure:"diode"`
}

type DiodeAgent

type DiodeAgent struct {
	Tags        map[string]string `mapstructure:"tags"`
	DiodeConfig DiodeConfig       `mapstructure:"config"`
	Policies    map[string]Policy `mapstructure:"policies"`
}

type DiodeConfig

type DiodeConfig struct {
	Debug      bool   `mapstructure:"debug"`
	OutputType string `mapstructure:"output_type"`
	OutputPath string `mapstructure:"output_path"`
	OutputAuth string `mapstructure:"output_auth"`
	Host       string `mapstructure:"host"`
	Port       string `mapstructure:"port"`
}

type Policy

type Policy struct {
	Kind    string                 `mapstructure:"kind"`
	Backend string                 `mapstructure:"backend"`
	Config  map[string]interface{} `mapstructure:"config"`
	Data    map[string]interface{} `mapstructure:"data"`
}

type Status

type Status struct {
	StartTime time.Time     `json:"start_time"`
	UpTime    time.Duration `json:"up_time"`
	Version   string        `json:"version"`
}

Jump to

Keyboard shortcuts

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