Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Debug mode Debug = "DEBUG" // MongoDBHost ... MongoDBHost = "MONGODB_HOST" // KafkaHost ... KafkaHost = "KAFKA_HOST" // CloudAutoDiscovery ... CloudAutoDiscovery = "CLOUD_AUTO_DISCOVERY" )
api server env
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct { Config *APIServerOptions WorkerOptions *cloud.WorkerOptions // contains filtered or unexported fields }
APIServer ...
func (*APIServer) PrepareRun ¶
func (s *APIServer) PrepareRun() (*PreparedAPIServer, error)
PrepareRun prepare for apiserver running
type APIServerOptions ¶
type APIServerOptions struct { MongoDBHost string KafkaHost string MongoGracePeriod time.Duration CyclonePort int CycloneAddrTemplate string ShowAPIDoc bool Debug bool CloudAutoDiscovery bool LogForceColor bool }
APIServerOptions contains all options(config) for api server
func NewAPIServerOptions ¶
func NewAPIServerOptions() *APIServerOptions
NewAPIServerOptions returns a new APIServerOptions
func (*APIServerOptions) AddFlags ¶
func (opts *APIServerOptions) AddFlags(app *cli.App)
AddFlags adds flags to cli.App
type PreparedAPIServer ¶
type PreparedAPIServer struct {
*APIServer
}
PreparedAPIServer is a prepared api server
func (*PreparedAPIServer) Run ¶
func (s *PreparedAPIServer) Run(stopCh <-chan struct{}) error
Run start a api server
func (*PreparedAPIServer) StartLogServer ¶
func (s *PreparedAPIServer) StartLogServer()
StartLogServer run a http log server and a websocket server
Click to show internal directories.
Click to hide internal directories.