generator

package
v0.0.0-...-3fd51b5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZipfType = "zipf"
	FileType = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func NewFile

func NewFile(path, traceType string, limit *uint) (*File, error)

func (*File) Generate

func (b *File) Generate() Stream[event.AccessEvent]

type Stream

type Stream[T any] struct {
	// contains filtered or unexported fields
}

func (Stream[T]) Next

func (s Stream[T]) Next() (T, bool)

type Zipf

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

func NewZipf

func NewZipf(s, v float64, imax uint64, limit *uint) *Zipf

func (*Zipf) Generate

func (b *Zipf) Generate() Stream[event.AccessEvent]

Jump to

Keyboard shortcuts

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