rest

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(logger *zap.Logger, options OperatorOptions) base.IOperator

Types

type Operation

type Operation struct {
	base.BaseExecution
	// contains filtered or unexported fields
}

func (*Operation) Execute

func (c *Operation) Execute(inputs []*structpb.Struct) ([]*structpb.Struct, error)

func (*Operation) Test

type Operator

type Operator struct {
	base.BaseOperator
	// contains filtered or unexported fields
}

func (*Operator) CreateExecution

func (o *Operator) CreateExecution(defUid uuid.UUID, config *structpb.Struct, logger *zap.Logger) (base.IExecution, error)

type OperatorOptions

type OperatorOptions struct{}

type Request

type Request struct {
	URL         string            `json:"url"`
	Method      string            `json:"method"`
	RequestBody string            `json:"request_body"`
	Headers     map[string]string `json:"headers"`
}

type Response

type Response struct {
	StatusCode   int               `json:"status_code"`
	ResponseBody string            `json:"response_body"`
	Headers      map[string]string `json:"headers"`
}

Jump to

Keyboard shortcuts

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