Documentation ¶
Overview ¶
Package mediator impolements a mediation between the client and server that results in either serving a file or passing the request on to a backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Begin ¶
func Begin(cfg *config.ServerConfig)
Begin sets up and a Mediator and starts a http.Server listening on the given configuration's TLSPort
Types ¶
type Mediator ¶
type Mediator struct { // ServerConfig is the configuration this mediator is expected to respect. ServerConfig *config.ServerConfig }
Mediator is responsible for mediating a request, either dispatching it to a backend or handling it as a file request.
Click to show internal directories.
Click to hide internal directories.