Documentation ¶
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
}
Server is responsible for the management of a Gosherve instance. This includes the logger, metrics, configuration and starting the HTTP server.
func (*Server) LookupRedirect ¶
LookupRedirect checks if an alias/redirect has been specified and returns it. If not found, this method will update the list of redirects and retry the lookup.
func (*Server) NumRedirects ¶
NumRedirects returns the number of redirects that are currently defined
func (*Server) RefreshRedirects ¶
RefreshRedirects is used to refresh the list of configured redirects in the manager by fetching the latest copy from the specified source.
Click to show internal directories.
Click to hide internal directories.