option

package
v3.7.2-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Config
	LogLevel string
	RunMode  string //default,sync
}

Builder builder server

func NewBuilder

func NewBuilder() *Builder

NewBuilder new server

func (*Builder) AddFlags

func (a *Builder) AddFlags(fs *pflag.FlagSet)

AddFlags config

func (*Builder) CheckEnv

func (a *Builder) CheckEnv() error

CheckEnv 检测环境变量

func (*Builder) SetLog

func (a *Builder) SetLog()

SetLog 设置log

type Config

type Config struct {
	EtcdEndPoints        []string
	EtcdTimeout          int
	EtcdPrefix           string
	ClusterName          string
	MysqlConnectionInfo  string
	DBType               string
	PrometheusMetricPath string
	EventLogServers      []string
	KubeConfig           string
	MaxTasks             int
	APIPort              int
	MQAPI                string
	DockerEndpoint       string
	HostIP               string
	CleanUp              bool
}

Config config server

Jump to

Keyboard shortcuts

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