set

package
v0.0.0-...-5b1d4a5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter

func NewCounter() *Counter

func (*Counter) Count

func (g *Counter) Count() uint

func (*Counter) Inc

func (g *Counter) Inc(incr uint) error

Inc provides incrementation of the counter

func (*Counter) Merge

func (g *Counter) Merge(c *Counter)

Merge provides merging of two counters

type PnCounter

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

PnCounter defines implementation of the PN-COUNTER

func NewPnCounter

func NewPnCounter() *PnCounter

NewPnCounter initializes pn counter

func (*PnCounter) Dec

func (p *PnCounter) Dec()

func (*PnCounter) Inc

func (p *PnCounter) Inc(num uint)

func (*PnCounter) Merge

func (p *PnCounter) Merge(n *PnCounter)

func (*PnCounter) Value

func (p *PnCounter) Value() int

Jump to

Keyboard shortcuts

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