membership

package
v1.1.56 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StaticMembershipType                = "static"
	CouchbaseMembershipType             = "couchbase"
	KubernetesStatefulSetMembershipType = "kubernetesStatefulSet"
	KubernetesHaMembershipType          = "kubernetesHa"
	DynamicMembershipType               = "dynamic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Membership

type Membership interface {
	GetInfo() *Model
	Close()
}

func NewDynamicMembership added in v1.1.54

func NewDynamicMembership(bus EventBus.Bus) Membership

func NewStaticMembership

func NewStaticMembership(config *config.Dcp) Membership

type Model

type Model struct {
	MemberNumber int
	TotalMembers int
}

func (*Model) IsChanged

func (s *Model) IsChanged(other *Model) bool

Jump to

Keyboard shortcuts

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