sequence

package
v0.0.0-...-d8c34b0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemorySequencer

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

just for testing

func NewMemorySequencer

func NewMemorySequencer() (m *MemorySequencer)

func (*MemorySequencer) NextFileId

func (m *MemorySequencer) NextFileId(count uint64) (uint64, uint64)

func (*MemorySequencer) Peek

func (m *MemorySequencer) Peek() uint64

func (*MemorySequencer) SetMax

func (m *MemorySequencer) SetMax(seenValue uint64)

type Sequencer

type Sequencer interface {
	NextFileId(count uint64) (uint64, uint64)
	SetMax(uint64)
	Peek() uint64
}

Jump to

Keyboard shortcuts

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