spi

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 1 Imported by: 2

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 (504) represents an error indicating the Consul did not respond promptly.
	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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL