option

package
v3.7.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: LGPL-3.0 Imports: 3 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EtcdEndPoints        []string
	EtcdTimeout          int
	EtcdPrefix           string
	ClusterName          string
	APIPort              int
	PrometheusMetricPath string
	RunMode              string //http grpc
	HostIP               string
	HostName             string
}

Config config server

type MQServer

type MQServer struct {
	Config
	LogLevel string
}

MQServer lb worker server

func NewMQServer

func NewMQServer() *MQServer

NewMQServer new server

func (*MQServer) AddFlags

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

AddFlags config

func (*MQServer) SetLog

func (a *MQServer) SetLog()

SetLog 设置log

Jump to

Keyboard shortcuts

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