cluster

package
v0.0.0-...-703b195 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ID    string
	Nodes map[string]*fcm.Node
	// contains filtered or unexported fields
}

func NewCluster

func NewCluster(logger *zap.Logger) (*Cluster, error)

func (*Cluster) AddNode

func (c *Cluster) AddNode() (*fcm.Node, error)

func (*Cluster) Shutdown

func (c *Cluster) Shutdown() error

type ClusterManager

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

func NewClusterManager

func NewClusterManager(logger *zap.Logger) *ClusterManager

func (*ClusterManager) Add

func (m *ClusterManager) Add() (*Cluster, error)

func (*ClusterManager) Get

func (m *ClusterManager) Get(id string) (*Cluster, bool)

func (*ClusterManager) GetNode

func (m *ClusterManager) GetNode(id string) (*fcm.Node, bool)

func (*ClusterManager) Remove

func (m *ClusterManager) Remove(id string)

Jump to

Keyboard shortcuts

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