package
0.6.5
Repository: https://github.com/chronos-tachyon/roxy.git
Documentation: pkg.go.dev

# Functions

Assert panics with CheckError if cond is false.
Assertf panics with CheckError if cond is false.
AssertNotNil takes a pointer to a nil-able type (pointer, interface, etc) and panics with CheckError if the pointed-to value is nil.
DereferenceEnumData returns enumData[value] or panics with InvalidEnumValueError.
ExpandPassword expands ${ENV_VAR} references and @file references.
ExpandPath expands ${ENV_VAR} references, ~ and ~user references, and makes the path absolute (by assuming it is relative to the current directory).
ExpandPathWithCWD expands ${ENV_VAR} references, ~ and ~user references, and makes the path absolute (by assuming it is relative to the given cwd).
ExpandString expands ${ENV_VAR} references.
LookupGroupByID is a wrapper around "os/user".LookupGroupId.
LookupGroupByName is a wrapper around "os/user".LookupGroup.
LookupHost is a wrapper around "net".(*Resolver).LookupHost.
LookupPort is a wrapper around "net".(*Resolver).LookupPort.
LookupSRV is a wrapper around "net".(*Resolver).LookupSRV.
LookupUserByID is a wrapper around "os/user".LookupId.
LookupUserByName is a wrapper around "os/user".Lookup.
MakeAllowedEnumNames returns the list of canonical string representations for this enum.
MakeGRPCStatusError attempts to autodetect the correct status code.
MarshalEnumToJSON marshals this enum value to JSON.
ParseEnum parses an enum value.
PathAbs is a wrapper around "path/filepath".Abs.
UnmarshalEnumFromJSON unmarshals an enum value from JSON.
ValidateATCLocation validates that the given string is a valid Location for the Air Traffic Control service.
ValidateATCServiceName validates that the given string is a valid Service Name for the Air Traffic Control service.
ValidateATCUniqueID validates that the given string is a valid UniqueID for the Air Traffic Control service.
ValidateEtcdPath validates that the given string is a valid etcd.io V3 key prefix, which must end with a "/".
ValidateNamedPort validates that the given string is a valid named port for a membership.Roxy or membership.ServerSet address advertisement.
ValidateZKPath validates that the given string is a valid ZooKeeper node path.

# Constants

PortType constants.
PortType constants.
PortType constants.

# Variables

ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrFailedToMatch et al signal that input parsing has failed.
ErrIsNull indicates that a JSON null value was parsed.
ErrNoHealthyBackends signals that a roxyresolver.Resolver was unable to find any healthy servers to talk to.
ErrNotExist signals that something does not exist.

# Structs

ATCLoadUniqueError represents failure to load or persist a stable unique ID.
ATCLocationError represents failure to parse an ATC location.
ATCServiceNameError represents failure to parse an ATC service name.
ATCShardNumberError represents failure to parse an ATC shard number.
ATCUniqueIDError represents failure to parse an ATC unique ID.
AuthorityError represents failure to parse a URL authority section or a Target authority section.
BoolError represents failure to parse the string representation of a boolean value.
CheckError represents an assertion failure.
EndpointError represents failure to parse a Target endpoint section.
EnumData holds data about one particular enum value.
EnvVarLookupError represents failure to look up an environment variable.
GRPCStatusError represents an error with an associated GRPC status code.
HostError represents failure to parse a hostname string.
HostPortError represents failure to parse a "host:port"-shaped string.
InvalidEnumNameError indicates an enum whose string representation could not be recognized.
InvalidEnumValueError indicates an enum whose numeric value is out of range.
IPError represents failure to parse an IP address string.
ListIndexError indicates an error in one item of a list.
LookupGroupByIDError represents failure to look up an OS group by GID.
LookupGroupByNameError represents failure to look up an OS group by name.
LookupHostError represents failure to look up DNS A/AAAA records.
LookupPortError represents failure to look up a network port by service name, using /etc/services or the like.
LookupSRVError represents failure to look up DNS SRV records.
LookupUserByIDError represents failure to look up an OS user by UID.
LookupUserByNameError represents failure to look up an OS user by name.
MapKeyError indicates an error in one value of a map.
PathAbsError represents failure to make a file path absolute.
PathError represents failure to parse a path of some sort, such as a URL path or a ZooKeeper path.
PortError represents failure to parse a port number string.
QueryParamError represents failure to parse the value of a specific URL query parameter or a specific Target query parameter.
QueryStringError represents failure to parse a URL query string or a Target query string.
RegexpMatchError represents failure to match a regular expression.
SchemeError represents failure to identify a URL scheme or a Target scheme.
StructFieldError indicates an error in one field of a struct.

# Type aliases

ExpectLiteralError represents failure to parse an input.
PortType denotes whether a port is named, numbered, or either.