Documentation
¶
Overview ¶
The httpserver package can be used in a charm to implement an http server. The port of the server is configured with the "server-port" charm configuration option, which should be added to config.yaml with integer type.
This package is currently highly experimental.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) PrivateAddress ¶
PrivateAddress returns the TCP address of the HTTP server. If the server is not running, it returns the empty string.
type ServerGetter ¶
ServerGetter returns a Server instance from a hook context.
Click to show internal directories.
Click to hide internal directories.