config

package
v0.0.0-...-41dce0b Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertConf

type AlertConf struct {
	Enable              bool   `yaml:"enable"`
	EnableAdminAlert    bool   `yaml:"enableAdminAlert"`
	EnableAppOwnerAlert bool   `yaml:"enableAppOwnerAlert"`
	Server              string `yaml:"server"`
}

type Config

type Config struct {
	Handlers  Handlers   `yaml:"handlers"`
	Resources []Resource `yaml:"resources"`
	Settings  Settings   `yaml:"settings"`
	K8s       K8s        `yaml:"k8s"`
}

type ElasticsearchConf

type ElasticsearchConf struct {
	Enable  bool
	Servers []string
	Index   string
}

type Handlers

type Handlers struct {
	RabbitMq      RabbitMqConf      `yaml:"rabbitmq"`
	Influxdb      InfluxdbConf      `yaml:"influxdb"`
	Alert         AlertConf         `yaml:"alert"`
	Webhook       Webhook           `yaml:"webhook"`
	Elasticsearch ElasticsearchConf `yaml:"elasticsearch"`
}

type InfluxdbConf

type InfluxdbConf struct {
	Enable   bool
	Server   string
	UserName string
	Password string
	DBName   string
}

type K8s

type K8s struct {
	APIServerHost  string
	KubeConfigFile string
	ClusterName    string
}

type RabbitMqConf

type RabbitMqConf struct {
	Enable       bool
	Servers      []string
	TopicName    string
	ExchangeType string
	Durable      bool
	RouteKey     string
	UserName     string
	Password     string
	Vhost        string
}

type Resource

type Resource struct {
	Name   string `yaml:"name"`
	Enable bool   `yaml:"enable"`
}

type Settings

type Settings struct {
	HttpPort        int
	EnableProfiling bool
	LogLevel        string
	LogFile         string
	LogStdout       bool
	Threadiness     int
}

type Webhook

type Webhook struct {
	Url string `json:"url"`
}

Jump to

Keyboard shortcuts

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