Documentation ¶
Overview ¶
Package server encapsulates http server entry points. It's the package for agency services.
Index ¶
Constants ¶
View Source
const TestServiceName = agency.ProtocolPath
Variables ¶
This section is empty.
Functions ¶
func BuildHostAddr ¶
func StartHTTPServer ¶
StartHTTPServer starts the http server. The function blocks when it success. It builds the host address and writes it to utils.Settings. It takes a CA API path (serviceName), and a host port, a server port as an argument. The server port is the port to listen, and the host port is the actual port on the Internet, the port the world sees, and is assigned to endpoints.
func StartTestHTTPServer ¶
func StartTestHTTPServer()
func StartTestHTTPServer2 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.