Documentation ¶
Overview ¶
Package services contains miscellaneous configuration validation for service names and IP addresses registered with Consul
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateName ¶
ValidateName checks if the service name passed as an argument is is alpha-numeric with dashes. This ensures compliance with both DNS and discovery backends.
Types ¶
type ByInterfaceThenIP ¶
type ByInterfaceThenIP []interfaceIP
ByInterfaceThenIP implements the Sort with the following properties: 1. Sort interfaces alphabetically 2. Sort IPs by bytes (normalized to 16 byte form)
func (ByInterfaceThenIP) Len ¶
func (se ByInterfaceThenIP) Len() int
func (ByInterfaceThenIP) Less ¶
func (se ByInterfaceThenIP) Less(i, j int) bool
func (ByInterfaceThenIP) Swap ¶
func (se ByInterfaceThenIP) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.