sample

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatConverter

func FloatConverter(v float64) any

Types

type Envelope

type Envelope struct {
	Value float64 `json:"value"`
}

type RandomProducer

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

func (*RandomProducer) Close

func (rp *RandomProducer) Close() error

func (*RandomProducer) Init

func (rp *RandomProducer) Init(d bool) error

func (*RandomProducer) Produce

func (rp *RandomProducer) Produce() (float64, error)

func (*RandomProducer) Setup

func (rp *RandomProducer) Setup(*cobra.Command, string)

type RandomStructProducer added in v0.1.3

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

func (*RandomStructProducer) Close added in v0.1.3

func (rp *RandomStructProducer) Close() error

func (*RandomStructProducer) Init added in v0.1.3

func (rp *RandomStructProducer) Init(d bool) error

func (*RandomStructProducer) Produce added in v0.1.3

func (rp *RandomStructProducer) Produce() (*Envelope, error)

func (*RandomStructProducer) Setup added in v0.1.3

Jump to

Keyboard shortcuts

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