Documentation ¶
Index ¶
- func AddUniversalEnvironmentOption(option EnvironmentOption)
- type BodyToReader
- type BuilderJSON
- type BuilderString
- type BuilderURLEncoded
- type DecodeBase64
- type DecodeURL
- type EncodeBase64
- type EncodeURL
- type Environment
- type EnvironmentOption
- func WithExportVar(key string, value interface{}) EnvironmentOption
- func WithHTTPTimeout(duration time.Duration) EnvironmentOption
- func WithProxyFunc(pf func(r *http.Request) (*url.URL, error)) EnvironmentOption
- func WithProxyURL(proxy string) EnvironmentOption
- func WithRetryLimit(limit int) EnvironmentOption
- func WithRetrySleep(duration time.Duration) EnvironmentOption
- func WithSecret(key, value string) EnvironmentOption
- func WithTransport(transport http.RoundTripper) EnvironmentOption
- func WithUniqueTransport() EnvironmentOption
- func WithWorkingVar(key string, value interface{}) EnvironmentOption
- type FlagToStatus
- type FlagToSubroutine
- type FlagVariables
- type GenerateAppId
- type GenerateString
- type GenerateUUID
- type HashMD5
- type HashSHA1
- type LoadCookies
- type MathAdd
- type MathCeiling
- type MathDivide
- type MathFloor
- type MathMultiply
- type MathRound
- type MathSubtract
- type MathTotal
- type ParseCookie
- type ParseHeader
- type ParseJSON
- type ParseLR
- type ParseRegex
- type PromoteVariable
- type RandomUA
- type RecaptchaV2
- type RecaptchaV3
- type Request
- type Result
- type Routine
- type Runnable
- type SaveCookies
- type SetCookie
- type SetVariable
- type SliceAppend
- type SliceMerge
- type SliceToSubroutine
- type Status
- type Subroutine
- type TimeAddDuration
- type TimeFlagPassed
- type TimeFromFormatted
- type TimeFromUnix
- type TimeNowToVariable
- type TimeParseDuration
- type TimeToUnix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUniversalEnvironmentOption ¶
func AddUniversalEnvironmentOption(option EnvironmentOption)
Types ¶
type BodyToReader ¶
type BodyToReader struct {
ToKey string
}
func (*BodyToReader) Run ¶
func (b *BodyToReader) Run(ctx context.Context, wce *Environment) (string, Status)
type BuilderJSON ¶
type BuilderJSON struct { Values []struct { ToPath []string Variable string Value interface{} Complex bool } ToKey string }
func (*BuilderJSON) Run ¶
func (b *BuilderJSON) Run(ctx context.Context, wce *Environment) (string, Status)
type BuilderString ¶
func (*BuilderString) Run ¶
func (b *BuilderString) Run(ctx context.Context, wce *Environment) (string, Status)
type BuilderURLEncoded ¶
type BuilderURLEncoded struct { Values []struct { ToPath string Variables []string Value string Complex bool } ToKey string }
func (*BuilderURLEncoded) Run ¶
func (b *BuilderURLEncoded) Run(ctx context.Context, wce *Environment) (string, Status)
type DecodeBase64 ¶
func (*DecodeBase64) Run ¶
func (b *DecodeBase64) Run(ctx context.Context, wce *Environment) (string, Status)
type EncodeBase64 ¶
func (*EncodeBase64) Run ¶
func (b *EncodeBase64) Run(ctx context.Context, wce *Environment) (string, Status)
type Environment ¶
type Environment struct { WorkingData map[string]interface{} ExportData map[string]interface{} Status Status Logs []string Client *http.Client // contains filtered or unexported fields }
func NewEnvironment ¶
func NewEnvironment(data map[string]interface{}, options ...EnvironmentOption) (env *Environment, err error)
func (*Environment) FullLogs ¶
func (wce *Environment) FullLogs() string
func (*Environment) LastLog ¶
func (wce *Environment) LastLog() string
func (*Environment) StatusString ¶
func (wce *Environment) StatusString() string
func (*Environment) ToResult ¶
func (wce *Environment) ToResult() *Result
type EnvironmentOption ¶
type EnvironmentOption func(environment *Environment) error
func WithExportVar ¶
func WithExportVar(key string, value interface{}) EnvironmentOption
func WithHTTPTimeout ¶
func WithHTTPTimeout(duration time.Duration) EnvironmentOption
func WithProxyFunc ¶
func WithProxyURL ¶
func WithProxyURL(proxy string) EnvironmentOption
func WithRetryLimit ¶
func WithRetryLimit(limit int) EnvironmentOption
func WithRetrySleep ¶
func WithRetrySleep(duration time.Duration) EnvironmentOption
func WithSecret ¶
func WithSecret(key, value string) EnvironmentOption
func WithTransport ¶
func WithTransport(transport http.RoundTripper) EnvironmentOption
func WithUniqueTransport ¶
func WithUniqueTransport() EnvironmentOption
func WithWorkingVar ¶
func WithWorkingVar(key string, value interface{}) EnvironmentOption
type FlagToStatus ¶
func (*FlagToStatus) Run ¶
func (b *FlagToStatus) Run(ctx context.Context, wce *Environment) (string, Status)
type FlagToSubroutine ¶
func (*FlagToSubroutine) Run ¶
func (b *FlagToSubroutine) Run(ctx context.Context, wce *Environment) (string, Status)
type FlagVariables ¶
func (*FlagVariables) Run ¶
func (b *FlagVariables) Run(ctx context.Context, wce *Environment) (string, Status)
type GenerateAppId ¶
type GenerateAppId struct {
ToKey string
}
func (*GenerateAppId) Run ¶
func (b *GenerateAppId) Run(ctx context.Context, wce *Environment) (string, Status)
type GenerateString ¶
func (*GenerateString) Run ¶
func (b *GenerateString) Run(ctx context.Context, wce *Environment) (string, Status)
type GenerateUUID ¶
type GenerateUUID struct {
ToKey string
}
func (*GenerateUUID) Run ¶
func (b *GenerateUUID) Run(ctx context.Context, wce *Environment) (string, Status)
type LoadCookies ¶
func (*LoadCookies) Run ¶
func (b *LoadCookies) Run(ctx context.Context, wce *Environment) (string, Status)
type MathCeiling ¶
func (*MathCeiling) Run ¶
func (b *MathCeiling) Run(ctx context.Context, wce *Environment) (string, Status)
type MathDivide ¶
func (*MathDivide) Run ¶
func (b *MathDivide) Run(ctx context.Context, wce *Environment) (string, Status)
type MathMultiply ¶
func (*MathMultiply) Run ¶
func (b *MathMultiply) Run(ctx context.Context, wce *Environment) (string, Status)
type MathSubtract ¶
func (*MathSubtract) Run ¶
func (b *MathSubtract) Run(ctx context.Context, wce *Environment) (string, Status)
type ParseCookie ¶
func (*ParseCookie) Run ¶
func (b *ParseCookie) Run(ctx context.Context, wce *Environment) (string, Status)
type ParseHeader ¶
func (*ParseHeader) Run ¶
func (b *ParseHeader) Run(ctx context.Context, wce *Environment) (string, Status)
type ParseRegex ¶
func (*ParseRegex) Run ¶
func (b *ParseRegex) Run(ctx context.Context, wce *Environment) (string, Status)
type PromoteVariable ¶
type PromoteVariable struct {
FromKey string
}
func (*PromoteVariable) Run ¶
func (b *PromoteVariable) Run(ctx context.Context, wce *Environment) (string, Status)
type RecaptchaV2 ¶
type RecaptchaV2 struct { SiteURL string Sitekey string ToKey string IsEnterprise bool CaptchaHost string }
func (*RecaptchaV2) Run ¶
func (b *RecaptchaV2) Run(ctx context.Context, wce *Environment) (string, Status)
type RecaptchaV3 ¶
type RecaptchaV3 struct { SiteURL string Sitekey string MinScore float64 ToKey string IsEnterprise bool CaptchaHost string }
func (*RecaptchaV3) Run ¶
func (b *RecaptchaV3) Run(ctx context.Context, wce *Environment) (string, Status)
type Request ¶
type Routine ¶
type Routine struct {
// contains filtered or unexported fields
}
func NewRoutine ¶
func RoutineFromBytes ¶
type Runnable ¶
type Runnable interface { Run(ctx context.Context, wce *Environment) (message string, status Status) // contains filtered or unexported methods }
type SaveCookies ¶
func (*SaveCookies) Run ¶
func (b *SaveCookies) Run(ctx context.Context, wce *Environment) (string, Status)
type SetVariable ¶
type SetVariable struct { ToKey string Value interface{} }
func (*SetVariable) Run ¶
func (b *SetVariable) Run(ctx context.Context, wce *Environment) (string, Status)
type SliceAppend ¶
func (*SliceAppend) Run ¶
func (b *SliceAppend) Run(ctx context.Context, wce *Environment) (string, Status)
type SliceMerge ¶
func (*SliceMerge) Run ¶
func (b *SliceMerge) Run(ctx context.Context, wce *Environment) (string, Status)
type SliceToSubroutine ¶
type SliceToSubroutine struct { VariableKeys []string Routine Routine FromKeys []string IgnoreErrors bool }
func (*SliceToSubroutine) Run ¶
func (b *SliceToSubroutine) Run(ctx context.Context, wce *Environment) (string, Status)
type Subroutine ¶
type Subroutine struct {
Subroutine Routine
}
func (*Subroutine) Run ¶
func (b *Subroutine) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeAddDuration ¶
func (*TimeAddDuration) Run ¶
func (b *TimeAddDuration) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeFlagPassed ¶
func (*TimeFlagPassed) Run ¶
func (b *TimeFlagPassed) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeFromFormatted ¶
func (*TimeFromFormatted) Run ¶
func (b *TimeFromFormatted) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeFromUnix ¶
func (*TimeFromUnix) Run ¶
func (b *TimeFromUnix) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeNowToVariable ¶
type TimeNowToVariable struct {
ToKey string
}
func (*TimeNowToVariable) Run ¶
func (b *TimeNowToVariable) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeParseDuration ¶
func (*TimeParseDuration) Run ¶
func (b *TimeParseDuration) Run(ctx context.Context, wce *Environment) (string, Status)
type TimeToUnix ¶
func (*TimeToUnix) Run ¶
func (b *TimeToUnix) Run(ctx context.Context, wce *Environment) (string, Status)
Source Files ¶
- Environment.go
- Routine.go
- Runnable.go
- Status.go
- netroutine.go
- zBodyToReader.go
- zBuilderJSON.go
- zBuilderString.go
- zBuilderURLEncoded.go
- zCookieLoad.go
- zCookieParse.go
- zCookieSave.go
- zDecodeBase64.go
- zDecodeURL.go
- zEncodeBase64.go
- zEncodeURL.go
- zFlagToStatus.go
- zFlagToSubroutine.go
- zFlagVariables.go
- zGenerateAppId.go
- zGenerateString.go
- zGenerateUUID.go
- zHashMD5.go
- zHashSHA1.go
- zMathAdd.go
- zMathCeiling.go
- zMathDivide.go
- zMathFloor.go
- zMathMultiply.go
- zMathRound.go
- zMathSubtract.go
- zMathTotal.go
- zParseHeader.go
- zParseJSON.go
- zParseLR.go
- zParseRegex.go
- zPromoteVariable.go
- zRandomUA.go
- zRecaptchaV2.go
- zRecaptchaV3.go
- zRequest.go
- zSetCookie.go
- zSetVariable.go
- zSliceAppend.go
- zSliceMerge.go
- zSliceToSubroutine.go
- zSubroutine.go
- zTimeAddDuration.go
- zTimeFlagPassed.go
- zTimeFromFormatted.go
- zTimeFromUnix.go
- zTimeNowToVariable.go
- zTimeParseDuration.go
- zTimeToUnix.go
Click to show internal directories.
Click to hide internal directories.