executor

package
v0.0.0-...-033b2cb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteRequest

type ExecuteRequest struct {
	Config common.Config
}

type ExecuteResponse

type ExecuteResponse struct {
	Response string
	Code     int
}

type Executor

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

func NewExecutor

func NewExecutor(
	executor ScriptExecutor,
) *Executor

func (*Executor) Execute

func (e *Executor) Execute(
	ctx context.Context,
	executeReq ExecuteRequest,
) (*ExecuteResponse, error)

type ScriptExecutor

type ScriptExecutor interface {
	Execute(ctx context.Context, script string, rawBody string, statusCode int) (string, error)
}

Jump to

Keyboard shortcuts

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