option

package
v5.0.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: LGPL-3.0 Imports: 4 Imported by: 18

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) CheckConfig

func (a *Builder) CheckConfig() error

CheckConfig check config

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
	Topic                string
}

Config config server

type NodeOSType

type NodeOSType string

Jump to

Keyboard shortcuts

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