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

Source Files