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

package option

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

Index

Package Files

option.go

type APIServer Uses

type APIServer struct {
    Config
    LogLevel       string
    StartRegionAPI bool
}

APIServer apiserver server

func NewAPIServer Uses

func NewAPIServer() *APIServer

NewAPIServer new server

func (*APIServer) AddFlags Uses

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

AddFlags config

func (*APIServer) SetLog Uses

func (a *APIServer) SetLog()

SetLog 设置log

type Config Uses

type Config struct {
    DBType            string
    APIAddr           string
    APIAddrSSL        string
    DBConnectionInfo  string
    EventLogServers   []string
    NodeAPI           []string
    BuilderAPI        []string
    V1API             string
    MQAPI             string
    EtcdEndpoint      []string
    APISSL            bool
    APICertFile       string
    APIKeyFile        string
    APICaFile         string
    WebsocketSSL      bool
    WebsocketCertFile string
    WebsocketKeyFile  string
    WebsocketAddr     string
    Opentsdb          string
    RegionTag         string
    LoggerFile        string
    EnableFeature     []string
    Debug             bool
    MinExtPort        int // minimum external port
    LicensePath       string
    LicSoPath         string
}

Config config

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