calldata

package
v0.0.0-...-11052b5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplate

func ParseTemplate(data []byte) (*template.Template, error)

func PrintFuncs

func PrintFuncs(output io.Writer)

PrintFuncs prints list of functions to output.

func SetSeeder

func SetSeeder(seed int64)

SetSeeder sets seed for pseudo-random generator.

Types

type CallData

type CallData struct {
	RequestNumber      int64
	Timestamp          string
	TimestampUnix      int64
	TimestampUnixMilli int64
	TimestampUnixNano  int64
	UUID               string
}

func NewCallData

func NewCallData(reqNum int) *CallData

func (*CallData) Execute

func (c *CallData) Execute(tmpl *template.Template) (*bytes.Buffer, error)

type Func

type Func struct {
	Name string
	Desc string
	Func interface{}
}

type Var

type Var struct {
	Name string
	Desc string
}

Jump to

Keyboard shortcuts

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