Versions in this module Expand all Collapse all v0 v0.0.5 Jun 15, 2020 v0.0.4 Jun 10, 2020 v0.0.3 Jan 30, 2020 v0.0.2 Dec 10, 2019 Changes in this version + func FindLoopbackIPv4Interface() net.Interface + func FindPublicIPv4() (net.IP, error) + func FreeTCPPort() (int, error) + func FreeUDPPort() (int, error) + func GetGRPCDialOpts(config GRPCClientParam) ([]grpc.DialOption, error) + func PortOfHostPort(hostport string) int + func RandomID() string + func RandomLocalEndpoint() string + func RandomPublicEndpoint() string + func TimeCall(call func(), description string) + func WaitForCtrlC() + type ConsoleProgress struct + Current int + Max int + func (c *ConsoleProgress) Print(val int) + type GRPCClientParam struct + CAFile string + ServerEndpoint string + ServerHostOverride string + TLS bool + type StringSet struct + Mutex *sync.RWMutex + Strings []string + func NewStringSet() StringSet + func (s *StringSet) Add(node string) bool + func (s *StringSet) Clear() + func (s *StringSet) Contains(e string) bool + func (s *StringSet) List() []string + func (s *StringSet) Remove(node string) bool + func (s *StringSet) Size() int + func (s *StringSet) Sync(nodes ...string) bool + type ZeroconfRegistry struct + ClusterName string + func NewZeroconfRegistry(clusterName string) *ZeroconfRegistry + func (zr *ZeroconfRegistry) Register(kind string, id string, port int) error + func (zr *ZeroconfRegistry) Resolve(kind string, waitTime time.Duration) ([]string, error) + func (zr *ZeroconfRegistry) ResolveFirst(kind string, waitTime time.Duration) (string, error) + func (zr *ZeroconfRegistry) Shutdown()