generators

package
v0.0.0-...-6dc70a1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 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 DistributedCounter

type DistributedCounter interface {
	counters.DistributedCounter
}

DistributedCounter ...

It is used only for mock generating.

type DistributedCounterGroup

type DistributedCounterGroup interface {
	SelectCounter() counters.DistributedCounter
}

DistributedCounterGroup ...

type DistributedGenerator

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

DistributedGenerator ...

func NewDistributedGenerator

func NewDistributedGenerator(
	chunkSize uint64,
	distributedCounters DistributedCounterGroup,
	formatter Formatter,
) *DistributedGenerator

NewDistributedGenerator ...

func (*DistributedGenerator) GenerateCode

func (generator *DistributedGenerator) GenerateCode() (string, error)

GenerateCode ...

type Formatter

type Formatter func(code uint64) string

Formatter ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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