rainbond: github.com/goodrain/rainbond/cmd/mq/option Index | Files

package option

import "github.com/goodrain/rainbond/cmd/mq/option"

Index

Package Files

option.go

type Config Uses

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 Uses

type MQServer struct {
    Config
    LogLevel string
}

MQServer lb worker server

func NewMQServer Uses

func NewMQServer() *MQServer

NewMQServer new server

func (*MQServer) AddFlags Uses

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

AddFlags config

func (*MQServer) SetLog Uses

func (a *MQServer) SetLog()

SetLog 设置log

Package option imports 3 packages (graph) and is imported by 4 packages. Updated 2019-03-10. Refresh now. Tools for package owners.