excludedRounds

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-2-Clause Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExcludedRounds

type ExcludedRounds interface {
	// Has indicates if the round is in the list.
	Has(rid id.Round) bool

	// Insert adds the round to the list. Returns true if the round was added.
	Insert(rid id.Round) bool

	// Remove deletes the round from the list.
	Remove(rid id.Round)

	// Len returns the number of rounds in the list.
	Len() int
}

ExcludedRounds is a list of rounds that are excluded from sending on.

type Set

type Set struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Set struct contains a set of rounds to be excluded from cmix

func NewSet

func NewSet() *Set

func (*Set) Has

func (s *Set) Has(rid id.Round) bool

func (*Set) Insert

func (s *Set) Insert(rid id.Round) bool

func (*Set) Len

func (s *Set) Len() int

func (*Set) Remove

func (s *Set) Remove(rid id.Round)

Jump to

Keyboard shortcuts

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