server

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CDS_UPDATE_SUCCESS   = "cluster_manager.cds.update_success"
	CDS_UPDATE_REJECT    = "cluster_manager.cds.update_rejected"
	LDS_UPDATE_SUCCESS   = "listener_manager.lds.update_success"
	LDS_UPDATE_REJECT    = "listener_manager.lds.update_rejected"
	SERVER_STATE         = "server.state"
	STAT_WORKERS_STARTED = "listener_manager.workers_started"
)

Variables

This section is empty.

Functions

func RegisterAdminHandleFunc

func RegisterAdminHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

Types

type Config

type Config interface {
	GetAdmin() *Admin
}
{
   "admin":{
	"address":{
	     "socket_address":{
		     "address": "0.0.0.0",
		     "port_value": 8888
	     }
	}
   }
}

type LogLevelData

type LogLevelData struct {
	LogPath  string `json:"log_path"`
	LogLevel string `json:"log_level"`
}

update log level

type Server

type Server struct {
	*http.Server
}

func (*Server) Start

func (s *Server) Start(config Config)

Jump to

Keyboard shortcuts

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