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

package option

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

Index

Package Files

option.go

type Config Uses

type Config struct {
    EtcdEndPoints        []string
    Address              string
    HostIP               string
    HostName             string
    Port                 int
    SessionKey           string
    PrometheusMetricPath string
}

Config config server

type WebCliServer Uses

type WebCliServer struct {
    Config
    LogLevel string
}

WebCliServer container webcli server

func NewWebCliServer Uses

func NewWebCliServer() *WebCliServer

NewWebCliServer new server

func (*WebCliServer) AddFlags Uses

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

AddFlags config

func (*WebCliServer) SetLog Uses

func (a *WebCliServer) SetLog()

SetLog 设置log

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