producer

package
v0.0.0-...-52d4462 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(configPath string, p Config)

Types

type Config

type Config struct {
	FilePath   string
	Round      int
	Mode       string
	Data       string
	Topic      string
	FakeType   string
	ServerAddr string
	BatchSize  int
}

type Producer

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

func NewProducer

func NewProducer(ctx context.Context, pc Config, w *kafka.Writer, ants *ants.Pool) *Producer

Jump to

Keyboard shortcuts

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