server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 37 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 string, isConsulEnabled, removeProjectScope bool, metricsConfig *metrics.Config) (*Server, error)

New creates a new server instance

func (*Server) InitRoutes

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

InitRoutes initialises the http routes

func (*Server) InitSecureRoutes

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

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

SetConfig sets the config

func (*Server) SetConfigFilePath

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