Documentation
¶
Overview ¶
Package srv contains API routes and handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { VerificationToken string `yaml:"verificationToken"` Host string `yaml:"host"` Port uint `yaml:"port"` }
Config provides configuration for an HTTP server of the Database Lab.
type Server ¶
type Server struct { Cloning cloning.Cloning Config *Config Global *global.Config Platform *platform.Service Observer *observer.Observer Estimator *estimator.Estimator // contains filtered or unexported fields }
Server defines an HTTP server of the Database Lab.
func NewServer ¶
func NewServer(cfg *Config, globalCfg *global.Config, observer *observer.Observer, cloning cloning.Cloning, platform *platform.Service, dockerClient *client.Client, estimator *estimator.Estimator, pm *pool.Manager) *Server
NewServer initializes a new Server instance with provided configuration.
func (*Server) InitHandlers ¶
func (s *Server) InitHandlers()
InitHandlers initializes handler functions of the HTTP server.
Click to show internal directories.
Click to hide internal directories.