Documentation ¶
Index ¶
- type Server
- func (s *Server) InitRoutes(profiler bool, staticPath string)
- func (s *Server) InitSecureRoutes(profiler bool, staticPath string)
- func (s *Server) LoadConfig(config *config.Config) error
- func (s *Server) RoutineMetrics()
- func (s *Server) SetConfig(c *config.Config, isProd bool)
- func (s *Server) SetConfigFilePath(configFilePath string)
- func (s *Server) Start(disableMetrics bool, port int) error
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
InitRoutes initialises the http routes
func (*Server) InitSecureRoutes ¶ added in v0.10.0
InitSecureRoutes initialises the http routes
func (*Server) LoadConfig ¶
LoadConfig configures each module to to use the provided config
func (*Server) RoutineMetrics ¶
func (s *Server) RoutineMetrics()
RoutineMetrics routinely sends anonymous metrics
func (*Server) SetConfigFilePath ¶ added in v0.10.0
SetConfigFilePath sets the config file path
Click to show internal directories.
Click to hide internal directories.