internaldto

package
v0.0.1-alpha34 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	QueryParam HTTPElementType = iota
	PathParam
	Header
	BodyAttribute
	RequestString
	Error
	QueryParamStr    string = "query"
	PathParamStr     string = "path"
	HeaderStr        string = "header"
	BodyAttributeStr string = "body"
	RequestStringStr string = "request"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecPayload

type ExecPayload interface {
	GetHeader() map[string][]string
	GetPayload() []byte
	GetPayloadMap() map[string]interface{}
	SetHeaderKV(k string, v []string)
}

func NewExecPayload

func NewExecPayload(payload []byte, header map[string][]string, payloadMap map[string]interface{}) ExecPayload

type HTTPElement

type HTTPElement interface {
	GetName() string
	GetType() HTTPElementType
	SetTransformer(transformer func(interface{}) (interface{}, error))
	Transformer(interface{}) (interface{}, error)
	IsTransformerPresent() bool
}

func NewHTTPElement

func NewHTTPElement(httpElemType HTTPElementType, name string) HTTPElement

type HTTPElementType

type HTTPElementType int

func ExtractHTTPElement

func ExtractHTTPElement(s string) (HTTPElementType, error)

Jump to

Keyboard shortcuts

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