exec

package
v0.0.0-...-852c197 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareScript

func PrepareScript(
	coll *data.Collection,
	requestName string,
	currentEnv string,
	overrides data.EnvMapValue,
) (string, data.EnvMapValue, error)

Types

type Identifier

type Identifier struct {
	Path       string
	Collection string
	Request    string
}

func (Identifier) String

func (i Identifier) String() string

type KafkaConsumer

type KafkaConsumer struct {
	*kafka.Reader
}

type KafkaPrinter

type KafkaPrinter struct {
	Tag string
	// contains filtered or unexported fields
}

func NewKafkaPrinter

func NewKafkaPrinter(tag string) (*KafkaPrinter, error)

func (*KafkaPrinter) Printf

func (p *KafkaPrinter) Printf(msg string, args ...any)

type KafkaProducer

type KafkaProducer struct {
	*kafka.Writer
	Config struct {
		Topic   string
		Timeout time.Duration
	}
}

type LoopChecker

type LoopChecker map[string]bool

func NewLoopChecker

func NewLoopChecker() LoopChecker

func (LoopChecker) AddIdent

func (lc LoopChecker) AddIdent(ident Identifier) bool

func (LoopChecker) ClearIdent

func (lc LoopChecker) ClearIdent(ident Identifier)

type State

type State struct {
	*lua.LState
	// contains filtered or unexported fields
}

func CreateState

func CreateState(
	ident Identifier,
	currentEnv string,
	env data.EnvMapValue,
	loopCheck LoopChecker,
) *State

func ExecuteRequest

func ExecuteRequest(
	coll *data.Collection,
	requestName string,
	currentEnv string,
	overrides data.EnvMapValue,
	loopCheck LoopChecker,
) (*State, error)

func (*State) CancelErr

func (s *State) CancelErr(format string, args ...any) int

Jump to

Keyboard shortcuts

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