Documentation ¶
Index ¶
- Constants
- Variables
- type Server
- func (s *Server) DeRegisterConsul() error
- func (s *Server) Finalize()
- func (s *Server) GetApp() *fiber.App
- func (s *Server) GetService() service.IService
- func (s *Server) GetStatus() ServerStatus
- func (s *Server) GetWebAPIServer() *web.WebAPIServer
- func (s *Server) GetWebConfig() *config.WebServerConfig
- func (s *Server) HandleSignals() error
- func (s *Server) Initialize(ctx context.Context, options ...ServerOption) error
- func (s *Server) Listen()
- func (s *Server) RegisterConsul() error
- func (s *Server) RequestRestartServer()
- func (s *Server) RequestShutdownServer()
- func (s *Server) SetStatus(status ServerStatus)
- func (s *Server) Shutdown() error
- func (s *Server) Start() error
- type ServerOption
- type ServerStatus
Constants ¶
View Source
const ( ServerStatusNone = iota ServerStatusInitialized ServerStatusRunning ServerStatusStopping )
Variables ¶
View Source
var ErrRequestRestart = errors.New("ErrRequestRestart")
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DeRegisterConsul ¶
func (*Server) GetService ¶
func (*Server) GetStatus ¶
func (s *Server) GetStatus() ServerStatus
func (*Server) GetWebAPIServer ¶
func (s *Server) GetWebAPIServer() *web.WebAPIServer
func (*Server) GetWebConfig ¶
func (s *Server) GetWebConfig() *config.WebServerConfig
func (*Server) HandleSignals ¶
func (*Server) Initialize ¶
func (s *Server) Initialize(ctx context.Context, options ...ServerOption) error
func (*Server) RegisterConsul ¶
func (*Server) RequestRestartServer ¶
func (s *Server) RequestRestartServer()
func (*Server) RequestShutdownServer ¶
func (s *Server) RequestShutdownServer()
func (*Server) SetStatus ¶
func (s *Server) SetStatus(status ServerStatus)
type ServerOption ¶
type ServerOption func(*Server)
Option is a functional option type that allows us to configure the Server.
type ServerStatus ¶
type ServerStatus int
Click to show internal directories.
Click to hide internal directories.