option

package
v5.2.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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
	EtcdCaFile        string
	EtcdCertFile      string
	EtcdKeyFile       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