option

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

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

Go to latest
Published: Sep 4, 2018 License: LGPL-3.0 Imports: 3 Imported by: 60

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACPLBServer

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

ACPLBServer lb worker server

func NewACPLBServer

func NewACPLBServer() *ACPLBServer

NewACPLBServer new server

func (*ACPLBServer) AddFlags

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

AddFlags config

func (*ACPLBServer) SetLog

func (a *ACPLBServer) SetLog()

SetLog 设置log

type Config

type Config struct {
	DefaultPluginName    string
	DefaultPluginOpts    []string
	EtcdEndPoints        []string
	EtcdTimeout          int
	EtcdPrefix           string
	ClusterName          string
	APIAddr              string
	RegionAPIAddr        string
	Token                string
	K8SConfPath          string
	NginxHTTPAPI         []string
	NginxStreamAPI       []string
	PrometheusMetricPath string
	EventServerAddress   []string
	BindIP               string
	BindPort             int
	RegTime              int64
	HostIP               string
	HostName             string
	Debug                bool
}

Config config server

Jump to

Keyboard shortcuts

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