Discover Packages
github.com/saferplace/webserver-go
package
module
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Sep 19, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Safer Place Go Webserver
A semi-structured Safer Place webserver
Why
This is just an opinionated webserver implementation, standardized between all Go services
Expand ▾
Collapse ▴
Documentation
¶
Option allows to override the default behaviour of the Server.
Logger overrides the default logger in the Server.
Middlewares allows to specify which middleware to use. This is also useful
if you want to override the default Cors middleware to limit which domains
CORS should be applicable to.
ReadTimeout overrides the default read timeout for the HTTP Server
Services provides the server with the list of services which should be served.
TLSConfig allows to set the TLS configuration for the server.
WriteTimeout overrides the default write timeout for the HTTP Server
Server hosts the connect service.
New creates a new connect server.
Run the server. If the TLSConfiguration is provided, the server will run securely,
otherwise it will run insecurely.
Service registers the service with the server, it
returns the path on which the server needs to be
registered and the handler for that path.
Source Files
¶
Directories
¶
Package certificate provides configuration loader.
Package certificate provides configuration loader.
temporary
Package temporary provides generated and temporary certificate.
Package temporary provides generated and temporary certificate.
Click to show internal directories.
Click to hide internal directories.