rv

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func (Node) Hostname

func (n Node) Hostname() string

func (Node) Hostport

func (n Node) Hostport() string

type NodeHash

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

func NewNodeHash

func NewNodeHash(onUpdateFunc OnUpdateFunc) *NodeHash

func (*NodeHash) Add

func (h *NodeHash) Add(hostname, hostport string)

func (*NodeHash) Get

func (h *NodeHash) Get(key string) *Node

func (*NodeHash) Remove

func (h *NodeHash) Remove(hostname string)

type NodeKeyChangeFunc

type NodeKeyChangeFunc func(oldNode, newNode *Node)

type OnUpdateFunc

type OnUpdateFunc func() (chan []string, NodeKeyChangeFunc)

Jump to

Keyboard shortcuts

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