option

package
v5.0.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

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