option

package
v3.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: LGPL-3.0 Imports: 3 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	Config
	LogLevel       string
	StartRegionAPI bool
}

APIServer apiserver server

func NewAPIServer

func NewAPIServer() *APIServer

NewAPIServer new server

func (*APIServer) AddFlags

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

AddFlags config

func (*APIServer) SetLog

func (a *APIServer) SetLog()

SetLog 设置log

type Config

type Config struct {
	DBType            string
	APIAddr           string
	APIAddrSSL        string
	DBConnectionInfo  string
	EventLogServers   []string
	NodeAPI           []string
	BuilderAPI        []string
	EntranceAPI       []string
	V1API             string
	MQAPI             string
	KubeConfig        string
	EtcdEndpoint      []string
	APISSL            bool
	APICertFile       string
	APIKeyFile        string
	WebsocketSSL      bool
	WebsocketCertFile string
	WebsocketKeyFile  string
	WebsocketAddr     string
	Opentsdb          string
	RegionTag         string
	LoggerFile        string
	Debug             bool
}

Config config

Jump to

Keyboard shortcuts

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