option

package
Version: 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: 20

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL