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: 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
	EtcdCaFile           string
	EtcdCertFile         string
	EtcdKeyFile          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