injection

package
v0.16.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentLength

func GetContentLength(pieces []BodyPiece) int

func StringToBytes

func StringToBytes(s string) (b []byte)

Types

type BodyPiece

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

type DdosifyBodyReader

type DdosifyBodyReader struct {
	Body   string // []byte
	Pieces []BodyPiece
	// contains filtered or unexported fields
}

func (*DdosifyBodyReader) Close

func (dbr *DdosifyBodyReader) Close() error

no-op close

func (*DdosifyBodyReader) Read

func (dbr *DdosifyBodyReader) Read(dst []byte) (n int, err error)

type EnvMatch

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

type EnvMatchSlice

type EnvMatchSlice []EnvMatch

func (EnvMatchSlice) Len

func (a EnvMatchSlice) Len() int

func (EnvMatchSlice) Less

func (a EnvMatchSlice) Less(i, j int) bool

func (EnvMatchSlice) Swap

func (a EnvMatchSlice) Swap(i, j int)

type EnvironmentInjector

type EnvironmentInjector struct {
	// contains filtered or unexported fields
}
Example
Output:

func (*EnvironmentInjector) GenerateBodyPieces

func (ei *EnvironmentInjector) GenerateBodyPieces(body string, envs map[string]interface{}) []BodyPiece

func (*EnvironmentInjector) Init

func (ei *EnvironmentInjector) Init()

func (*EnvironmentInjector) InjectDynamic

func (ei *EnvironmentInjector) InjectDynamic(text string) (string, error)

func (*EnvironmentInjector) InjectDynamicIntoBuffer

func (ei *EnvironmentInjector) InjectDynamicIntoBuffer(text string, buffer *bytes.Buffer) (*bytes.Buffer, error)

func (*EnvironmentInjector) InjectEnv

func (ei *EnvironmentInjector) InjectEnv(text string, envs map[string]interface{}) (string, error)

Jump to

Keyboard shortcuts

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