Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationEndpoint ¶
type ApplicationEndpoint struct { ServiceID string InstanceID int Application string Purpose string HostID string HostIP string // Host where the endpoint is running. Used to determine if it's running locally or if we need to mux it HostPort uint16 ContainerID string ContainerIP string // The container IP that we're routing to (usually a container except for the cc api endpoint) ContainerPort uint16 // The container port that we're routing to Protocol string VirtualAddress string ProxyPort uint16 // The port in the container we're listening on }
An exposed service endpoint
func (*ApplicationEndpoint) Equals ¶
func (a *ApplicationEndpoint) Equals(b *ApplicationEndpoint) bool
Equals verifies whether two endpoint objects are equal
func (*ApplicationEndpoint) Find ¶
func (endpoint *ApplicationEndpoint) Find(endpoints []ApplicationEndpoint) *ApplicationEndpoint
Find the entry in endpoints which matches the specified endpoint
func (*ApplicationEndpoint) GetID ¶
func (endpoint *ApplicationEndpoint) GetID() string
Returns a string which uniquely identifies an endpoint instance
type ApplicationEndpointSlice ¶
type ApplicationEndpointSlice []ApplicationEndpoint
ApplicationEndpointSlice is an ApplicationEndpoint array sortable by ServiceID, InstanceID, and Application
func (ApplicationEndpointSlice) Len ¶
func (s ApplicationEndpointSlice) Len() int
func (ApplicationEndpointSlice) Less ¶
func (s ApplicationEndpointSlice) Less(i, j int) bool
func (ApplicationEndpointSlice) Swap ¶
func (s ApplicationEndpointSlice) Swap(i, j int)
type EndpointReport ¶
type EndpointReport struct { Endpoint ApplicationEndpoint // FIXME: Refactor into some kind of array of typed messages (e.g. info, warn and error) Messages []string }
func BuildEndpointReports ¶
func BuildEndpointReports(appEndpoints []ApplicationEndpoint) []EndpointReport
BuildEndpointReports converts an array of ApplicationEndpoints to an array of EndpointReports
Click to show internal directories.
Click to hide internal directories.