static

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MembershipModule

func MembershipModule(
	hostsByService map[primitives.ServiceName]Hosts,
) fx.Option

func NewMonitor

func NewMonitor(hosts map[primitives.ServiceName]Hosts) membership.Monitor

NewMonitor creates a new Monitor with the given host mappings.

Types

type Hosts

type Hosts struct {
	// Addresses of all hosts per service.
	All []string
	// Address of this host. May be empty if this host is not running this service.
	Self string
}

func SingleLocalHost

func SingleLocalHost(host string) Hosts

Jump to

Keyboard shortcuts

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