Group

package
v0.0.0-...-41ddd9f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group interface {
	Join(uid string) error
	Leave(uid string) error
	GetMaster() string
	SetMaster(uid string) error
	GetGroupName() string
}

type Impl

type Impl struct {
	RWmu    sync.RWMutex
	Members map[string]bool
	// contains filtered or unexported fields
}

func New

func New(groupName, masterUid string) *Impl

func (*Impl) GetGroupName

func (i *Impl) GetGroupName() string

func (*Impl) GetMaster

func (i *Impl) GetMaster() string

func (*Impl) Join

func (i *Impl) Join(uid string) error

func (*Impl) Leave

func (i *Impl) Leave(uid string) error

func (*Impl) SetMaster

func (i *Impl) SetMaster(uid string) error

Jump to

Keyboard shortcuts

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