lambdaproxy

package
v0.0.0-...-8056938 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeRequest

func EncodeRequest(input *HTTPRequest, options *EncodeOptions) ([]byte, error)

Types

type DecodeOptions

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

type EncodeOptions

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

encode and decode options - future placeholder for v1 and v2 options of lambda results

type HTTPProbeCmd

type HTTPProbeCmd struct {
	Method   string   `json:"method"`
	Resource string   `json:"resource"`
	Port     int      `json:"port"`
	Protocol string   `json:"protocol"`
	Headers  []string `json:"headers"`
	Body     string   `json:"body"`
	BodyFile string   `json:"body_file"`
	Username string   `json:"username"`
	Password string   `json:"password"`
	Crawl    bool     `json:"crawl"`
}

HTTPProbeCmd provides the HTTP probe parameters

type HTTPRequest

type HTTPRequest struct {
	Method   string   `json:"method"`
	Resource string   `json:"resource"`
	Headers  []string `json:"headers"`
	Body     string   `json:"body"`
	Protocol string   `json:"protocol"`
	Username string   `json:"username"`
	Password string   `json:"password"`
}

type HTTPResponse

type HTTPResponse struct {
	StatusCode int      `json:"statusCode"`
	Headers    []string `json:"headers"`
	Body       string   `json:"body"`
}

func DecodeResponse

func DecodeResponse(input []byte, options *DecodeOptions) (HTTPResponse, error)

Jump to

Keyboard shortcuts

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