cluster

package
v0.0.0-...-c037550 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCluster

type BaseCluster struct {
	Mode    int
	Host    string
	Members *safemap.SafeMap
	Done    chan bool
}

func (*BaseCluster) GetHost

func (bc *BaseCluster) GetHost() string

func (*BaseCluster) GetHosts

func (bc *BaseCluster) GetHosts() []string

func (*BaseCluster) GetOtherHosts

func (bc *BaseCluster) GetOtherHosts() []string

func (*BaseCluster) Stop

func (bc *BaseCluster) Stop()

type Cluster

type Cluster interface {
	Stop()
	GetHost() string
	GetHosts() []string
	GetOtherHosts() []string
	// contains filtered or unexported methods
}

func NewConfigCluster

func NewConfigCluster(host string) Cluster

type ConfigCluster

type ConfigCluster struct {
	BaseCluster
}

Jump to

Keyboard shortcuts

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