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

package option

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

Index

Package Files

option.go

type Config Uses

type Config struct {
    EtcdEndPoints           []string
    EtcdTimeout             int
    EtcdPrefix              string
    ClusterName             string
    MysqlConnectionInfo     string
    DBType                  string
    PrometheusMetricPath    string
    EventLogServers         []string
    KubeConfig              string
    MaxTasks                int
    MQAPI                   string
    NodeName                string
    NodeAPI                 string
    Listen                  string
    HostIP                  string
    ServerPort              int
    KubeClient              *kubernetes.Clientset
    LeaderElectionNamespace string
    LeaderElectionIdentity  string
}

Config config server

type Worker Uses

type Worker struct {
    Config
    LogLevel string
    RunMode  string //default,sync
}

Worker worker server

func NewWorker Uses

func NewWorker() *Worker

NewWorker new server

func (*Worker) AddFlags Uses

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

AddFlags config

func (*Worker) CheckEnv Uses

func (a *Worker) CheckEnv() error

CheckEnv 检测环境变量

func (*Worker) SetLog Uses

func (a *Worker) SetLog()

SetLog 设置log

Package option imports 6 packages (graph) and is imported by 9 packages. Updated 2019-04-04. Refresh now. Tools for package owners.