generator

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigGenerator

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

func NewConfigGenerator

func NewConfigGenerator(encoder encoder.Encoder, collection *ConfigGeneratorCollection, secrets *secrets.SecretGeneratorCollection) *ConfigGenerator

func (*ConfigGenerator) ChunkSeparator

func (g *ConfigGenerator) ChunkSeparator() []byte

func (*ConfigGenerator) End

func (g *ConfigGenerator) End() []byte

func (*ConfigGenerator) Generate

func (g *ConfigGenerator) Generate() []byte

func (*ConfigGenerator) GenerateChunk

func (g *ConfigGenerator) GenerateChunk() []byte

func (*ConfigGenerator) Start

func (g *ConfigGenerator) Start() []byte

type ConfigGeneratorCollection

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

func NewConfigGeneratorCollection

func NewConfigGeneratorCollection() (*ConfigGeneratorCollection, error)

func (*ConfigGeneratorCollection) GetRandomGenerator

func (g *ConfigGeneratorCollection) GetRandomGenerator() *chaff.RootGenerator

type Generator

type Generator interface {
	Start() []byte
	Generate() []byte
	GenerateChunk() []byte
	ChunkSeparator() []byte
	End() []byte
}

func GetGeneratorForEncoder

func GetGeneratorForEncoder(encoder encoder.Encoder, configGenerators *ConfigGeneratorCollection, secretsGenerators *secrets.SecretGeneratorCollection) Generator

type RobotsTxtGenerator

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

func NewRobotsTxtGenerator

func NewRobotsTxtGenerator(rand *rand.SeededRand) (*RobotsTxtGenerator, error)

func (*RobotsTxtGenerator) Generate

func (g *RobotsTxtGenerator) Generate() string

func (*RobotsTxtGenerator) GenerateChunk

func (g *RobotsTxtGenerator) GenerateChunk() string

type TabularGenerator

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

func NewTabularGenerator

func NewTabularGenerator(encoder encoder.Encoder) *TabularGenerator

func (*TabularGenerator) ChunkSeparator

func (g *TabularGenerator) ChunkSeparator() []byte

func (*TabularGenerator) End

func (g *TabularGenerator) End() []byte

func (*TabularGenerator) Generate

func (g *TabularGenerator) Generate() []byte

func (*TabularGenerator) GenerateChunk

func (g *TabularGenerator) GenerateChunk() []byte

func (*TabularGenerator) Start

func (g *TabularGenerator) Start() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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