cluster

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryManager

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

func NewInMemoryManager

func NewInMemoryManager(serverNameSingleArray []string) *InMemoryManager

func (*InMemoryManager) Close

func (im *InMemoryManager) Close() error

func (*InMemoryManager) GetInstances

func (im *InMemoryManager) GetInstances() ([]string, error)

type Manager

type Manager interface {
	GetInstances() ([]string, error)

	Close() error
	// contains filtered or unexported methods
}

Manager is a cluster manager for keeping information about active nodes

type RedisManager

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

func NewRedisManager

func NewRedisManager(serverName string, pool *meta.RedisPool) *RedisManager

NewRedisManager returned configured cluster.Manger based on Redis implementation

func (*RedisManager) Close

func (rm *RedisManager) Close() error

func (*RedisManager) GetInstances

func (rm *RedisManager) GetInstances() ([]string, error)

GetInstances returns instance names list from Redis

Jump to

Keyboard shortcuts

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