metadata

package
v0.0.0-...-9613083 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	ID          NodeID
	Name        string
	Bootstrap   bool
	Expect      int
	NonVoter    bool
	Status      serf.MemberStatus
	RaftAddr    string
	SerfLANAddr string
	BrokerAddr  string
}

func IsBroker

func IsBroker(m serf.Member) (*Broker, bool)

IsBroker checks if the given serf.Member is a broker, building and returning Broker instance from the Member's tags if so.

func (Broker) Host

func (b Broker) Host() string

func (Broker) Port

func (b Broker) Port() int32

func (Broker) String

func (b Broker) String() string

type NodeID

type NodeID int32

func (NodeID) Int32

func (n NodeID) Int32() int32

func (NodeID) String

func (n NodeID) String() string

Jump to

Keyboard shortcuts

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