Documentation ¶
Overview ¶
Package svr contains generic server startup/shutdown code, currently for running HTTP servers, but can also add in GRPC etc down the line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { AddHTTPEndpoint(name string, _ netx.HostPort, _ http.Handler, _ *TLSOptions) Server EndpointURL(name string) string Start(_ context.Context) error Stop(_ context.Context) error Run(_ context.Context) error WaitForShutdown(_ context.Context) error }
A Server is a server mainline.
type TLSOptions ¶
TLSOptions are options for transport layer security.
func (*TLSOptions) Copy ¶
func (opts *TLSOptions) Copy() *TLSOptions
Copy creates a copy of the TLSOptions.
Click to show internal directories.
Click to hide internal directories.