Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewThreadsafeSet ¶
func NewThreadsafeSet(values ...string) *tsafeSet
func NewUnsafeSet ¶
func NewUnsafeSet(values ...string) *unsafeSet
Types ¶
type ID ¶
type ID uint64
ID represents a generic identifier which is canonically stored as a uint64 but is typically represented as a base-16 string for input/output
func IDFromString ¶
IDFromString attempts to create an ID from a base-16 string.
type URLs ¶
func (URLs) StringSlice ¶
type URLsMap ¶ added in v1.2.0
func NewURLsMap ¶ added in v1.2.0
NewURLsMap returns a URLsMap instantiated from the given string, which consists of discovery-formatted names-to-URLs, like: mach0=http://1.1.1.1:2380,mach0=http://2.2.2.2::2380,mach1=http://3.3.3.3:2380,mach2=http://4.4.4.4:2380
type Uint64Slice ¶
type Uint64Slice []uint64
Uint64Slice implements sort interface
func (Uint64Slice) Len ¶
func (p Uint64Slice) Len() int
func (Uint64Slice) Less ¶
func (p Uint64Slice) Less(i, j int) bool
func (Uint64Slice) Swap ¶
func (p Uint64Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.