server

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the object which sets up the server and handles all server operations

func New

func New(nodeID, clusterID, advertiseAddr, storeType string, removeProjectScope bool, metricsConfig *metrics.Config) (*Server, error)

New creates a new server instance

func (*Server) InitRoutes added in v0.10.0

func (s *Server) InitRoutes(profiler bool, staticPath string)

InitRoutes initialises the http routes

func (*Server) InitSecureRoutes added in v0.10.0

func (s *Server) InitSecureRoutes(profiler bool, staticPath string)

InitSecureRoutes initialises the http routes

func (*Server) LoadConfig

func (s *Server) LoadConfig(config *config.Config) error

LoadConfig configures each module to to use the provided config

func (*Server) RoutineMetrics

func (s *Server) RoutineMetrics()

RoutineMetrics routinely sends anonymous metrics

func (*Server) SetConfig added in v0.10.0

func (s *Server) SetConfig(c *config.Config, isProd bool)

SetConfig sets the config

func (*Server) SetConfigFilePath added in v0.10.0

func (s *Server) SetConfigFilePath(configFilePath string)

SetConfigFilePath sets the config file path

func (*Server) Start

func (s *Server) Start(disableMetrics bool, port int) error

Start begins the server operations

Jump to

Keyboard shortcuts

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