app

package
v1.20.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *Config) error

Run entry for bmsf-mesos-adaptor

Types

type Config

type Config struct {
	conf.FileConfig
	conf.ServiceConfig
	conf.MetricConfig
	conf.CertConfig
	conf.ZkConfig
	conf.LogConfig
	conf.ProcessConfig
	Scheme     string `json:"metric_scheme" value:"http" usage:"scheme for metric api"`
	Zookeeper  string `json:"zookeeper" value:"127.0.0.1:3181" usage:"data source for taskgroups and services"`
	Cluster    string `json:"cluster" value:"" usage:"cluster id or name"`
	KubeConfig string `json:"kubeconfig" value:"kubeconfig" usage:"configuration file for kube-apiserver"`
}

Config detail configuration item

func (*Config) Validate

func (c *Config) Validate() error

Validate validate command line parameter

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server discovery server, holding all resources

func NewServer

func NewServer(config *Config) *Server

NewServer create server object

func (*Server) Run

func (s *Server) Run()

Run running server loop

func (*Server) Stop

func (s *Server) Stop()

Stop stop server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL