memory

package
v1.10.19 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

func NewCluster

func NewCluster() *Cluster

func (*Cluster) Close

func (c *Cluster) Close()

func (*Cluster) CreateMembership

func (c *Cluster) CreateMembership() (cluster.Membership, error)

func (*Cluster) GetMembers

func (c *Cluster) GetMembers(_ context.Context) ([]cluster.Member, error)

func (*Cluster) WatchMembers

func (c *Cluster) WatchMembers(ctx context.Context) <-chan []cluster.Member

type Member added in v1.10.12

type Member struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Member) Data added in v1.10.12

func (m *Member) Data() string

func (*Member) Deregister added in v1.10.12

func (m *Member) Deregister(ctx context.Context) error

func (*Member) ID added in v1.10.12

func (m *Member) ID() string

func (*Member) Register added in v1.10.12

func (m *Member) Register(ctx context.Context) error

func (*Member) SetData added in v1.10.12

func (m *Member) SetData(data string) error

Jump to

Keyboard shortcuts

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