Versions in this module Expand all Collapse all v2 v2.0.0 Jul 31, 2024 Changes in this version + type Location struct + Address types.AddrPort + Name string + type Remote struct + Certificate types.X509Certificate + func (r *Remote) URL() api.URL + type Remotes struct + func (r *Remotes) Add(dir string, remotes ...Remote) error + func (r *Remotes) Addresses() map[string]types.AddrPort + func (r *Remotes) Certificates() map[string]types.X509Certificate + func (r *Remotes) CertificatesNative() map[string]x509.Certificate + func (r *Remotes) Cluster(isNotification bool, serverCert *shared.CertInfo, publicKey *x509.Certificate) (client.Cluster, error) + func (r *Remotes) Count() int + func (r *Remotes) Load(dir string) error + func (r *Remotes) RemoteByAddress(addrPort types.AddrPort) *Remote + func (r *Remotes) RemoteByCertificateFingerprint(fingerprint string) *Remote + func (r *Remotes) RemotesByName() map[string]Remote + func (r *Remotes) Replace(dir string, newRemotes ...types.ClusterMember) error + func (r *Remotes) SelectRandom() *Remote + type Store struct + func Init(watcher *sys.Watcher, onUpdate func(oldRemotes, newRemotes Remotes) error, ...) (*Store, error) + func (ts *Store) Refresh() error + func (ts *Store) Remotes() *Remotes Other modules containing this package github.com/masnax/microtest