Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StatusOK (200) represents a Consulate call which succeeded. StatusOK = http.StatusOK // StatusBadRequestError (400) represents a request to Consulate which could not be understood. StatusBadRequestError = http.StatusBadRequest // StatusNoChecksError (404) represents an error when no Consul checks exist. StatusNoChecksError = http.StatusNotFound // StatusUnprocessableResponseError (502) represents an error indicating that Consulate could not parse the response from Consul. StatusUnprocessableResponseError = http.StatusBadGateway // StatusCheckError (503) represents an error indicating one or more Consul checks have failed. StatusCheckError = http.StatusServiceUnavailable StatusConsulUnavailableError = http.StatusGatewayTimeout )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunningServer ¶
type RunningServer interface {
// Stop terminates the current RunningServer.
Stop()
}
RunningServer represents a server is running and can be stopped.
type Server ¶
type Server interface {
// Start begins the Server.
Start() (RunningServer, error)
}
Server represents a server that can be started.
Click to show internal directories.
Click to hide internal directories.