Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher of the application.
func NewDispatcher ¶
func NewDispatcher(config config.Configuration) *Dispatcher
NewDispatcher creates a new Dispatcher instance.
func (Dispatcher) Dispatch ¶
func (d Dispatcher) Dispatch(controlCtx context.Context)
Dispatch operation.
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer is an interface for handling HTTP connections.
func NewHTTPServer ¶
func NewHTTPServer( config config.Configuration, routes []ports.Route, ) *HTTPServer
NewHTTPServer allocates and returns a new HTTPServer to handle HTTP connections.
func (*HTTPServer) BlockingClose ¶
func (h *HTTPServer) BlockingClose()
BlockingClose closes all active connections gracefully.
func (*HTTPServer) Start ¶
func (h *HTTPServer) Start() error
Start initiates routes configuration, and starts listening.
Click to show internal directories.
Click to hide internal directories.