Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(s *serverBuilder) error
Opt is an option for configuring the rest server
func TLSCertPath ¶
TLSCertPath configures the path to the tls certificate
func TLSKeyPath ¶
TLSKeyPath configures the path to the tls private key
type Server ¶
Server is a wrapper around the http server that manages signals Note that I don't use life' lifecycle here because we have a blocking call for run (so I don't use life.Close or life.Done for managing the background thread. I use the server.ListenAndServe and server.Shutdown).
Click to show internal directories.
Click to hide internal directories.