Package types declares various data types and implements type-checking functions.
ID represents a generic identifier which is canonically stored as a uint64 but is typically represented as a base-16 string for input/output
IDFromString attempts to create an ID from a base-16 string.
IDSlice implements the sort interface
URLsMap is a map from a name to its URLs.
NewURLsMap returns a URLsMap instantiated from the given string, which consists of discovery-formatted names-to-URLs, like: mach0=http://188.8.131.52:2380,mach0=http://184.108.40.206::2380,mach1=http://220.127.116.11:2380,mach2=http://18.104.22.168:2380
NewURLsMapFromStringMap takes a map of strings and returns a URLsMap. The string values in the map can be multiple values separated by the sep string.
Len returns the size of URLsMap.
String turns URLsMap into discovery-formatted name-to-URLs sorted by name.
URLs returns a list of all URLs. The returned list is sorted in ascending lexicographical order.
Uint64Slice implements sort interface