memberlist

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(initMembers []string, msgHandler msgHandlerFun, leaveHandler notifyLeaveFun) (*Client, error)

func (*Client) Broadcast

func (c *Client) Broadcast(b []byte)

func (*Client) ListMembers

func (c *Client) ListMembers() []*memberlist.Node

func (*Client) RejoinInitMembers added in v1.0.0

func (c *Client) RejoinInitMembers() error

func (*Client) UpdateNode

func (c *Client) UpdateNode() error

Jump to

Keyboard shortcuts

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