option

package
v5.1.10-release+incomp... Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 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
	V1API             string
	MQAPI             string
	EtcdEndpoint      []string
	APISSL            bool
	APICertFile       string
	APIKeyFile        string
	APICaFile         string
	WebsocketSSL      bool
	WebsocketCertFile string
	WebsocketKeyFile  string
	WebsocketAddr     string
	Opentsdb          string
	RegionTag         string
	LoggerFile        string
	EnableFeature     []string
	Debug             bool
	MinExtPort        int // minimum external port
	LicensePath       string
	LicSoPath         string
	LogPath           string
}

Config config

Jump to

Keyboard shortcuts

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