apache

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApacheLogGenerator

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

ApacheLogGenerator generates Apache Common Log Format (CLF) log data

func New

func New(logger *zap.Logger, workers int, rate time.Duration) (*ApacheLogGenerator, error)

New creates a new Apache log generator

func (*ApacheLogGenerator) SetCountTracker added in v0.13.0

func (g *ApacheLogGenerator) SetCountTracker(t *count.Tracker)

SetCountTracker sets the finite generation count tracker.

func (*ApacheLogGenerator) Start

func (g *ApacheLogGenerator) Start(writer output.Writer) error

Start starts the Apache log generator and writes data using the provided generator writer.

func (*ApacheLogGenerator) Stop

func (g *ApacheLogGenerator) Stop(ctx context.Context) error

Stop stops the Apache log generator. This function expects to be called exactly once.

Jump to

Keyboard shortcuts

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