cluster

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(opts ...Option) *Manager

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) Nodes

func (m *Manager) Nodes() []*Node

func (*Manager) Update

func (m *Manager) Update(config *config.Config)

type Node

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

func NewNode

func NewNode(opts ...Option) *Node

func (*Node) AdminAddr

func (n *Node) AdminAddr() string

func (*Node) ClusterState

func (n *Node) ClusterState() *cluster.State

func (*Node) GossipAddr

func (n *Node) GossipAddr() string

func (*Node) ProxyAddr

func (n *Node) ProxyAddr() string

func (*Node) RootCAPool

func (n *Node) RootCAPool() *x509.CertPool

func (*Node) Start

func (n *Node) Start()

func (*Node) Stop

func (n *Node) Stop()

func (*Node) UpstreamAddr

func (n *Node) UpstreamAddr() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAuthConfig

func WithAuthConfig(config auth.Config) Option

WithAuthConfig configures the upstream authentication config.

func WithJoin

func WithJoin(join []string) Option

WithJoin configures the nodes to join.

func WithLogger

func WithLogger(logger log.Logger) Option

WithLogger configures the logger. Defaults to no output.

func WithTLS

func WithTLS(tls bool) Option

WithTLS configures the node ports to use TLS.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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