generator

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package generator contains an implementation of an in-memory generator that generates payloads in json format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemGen

func NewMemGen(ctx context.Context, vertexInstance *dfv1.VertexInstance, opts ...Option) (sourcer.SourceReader, error)

NewMemGen function creates an instance of generator source reader.

Types

type Data added in v0.7.2

type Data struct {
	Value uint64 `json:"value,omitempty"`
	// only to ensure a desired message size
	Padding []byte `json:"padding,omitempty"`
}

type Option

type Option func(*memGen) error

func WithReadTimeout added in v0.7.0

func WithReadTimeout(timeout time.Duration) Option

WithReadTimeout sets the read timeout for the reader.

Jump to

Keyboard shortcuts

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