mstore

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DNSWatchSleepTime = dflag.New(15*time.Second, "Sleep time between DNS resolution")
	// StatefulSet special handling (reverse DNS to name-0, name-1, etc.).
	StatefulSet = dflag.NewBool(false,
		"Deployment is a stateful set, we will reverse the dns to get the name-0, name-1... name-n peers")
)
View Source
var (
	// Either direct peer lists (yet dynamic).
	Peers = dflag.New(
		sets.Set[string]{},
		"Peers to connect to (comma separated set)",
	).WithNotifier(peerChange)
	// or DNS based discovery/watch.
	DNSWatch = dflag.New("", "DNS service name to watch for peers").WithNotifier(dnsChange)
)

Functions

func DNSWatcher

func DNSWatcher(serviceName string) context.CancelFunc

func Start

func Start(name string)

func StartDNSWatch

func StartDNSWatch(serviceName string)

func Stop

func Stop()

func StopDNSWatch

func StopDNSWatch()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL