Documentation ¶
Index ¶
Constants ¶
View Source
const (
EmptyTag = "__EMPTY__"
)
Variables ¶
This section is empty.
Functions ¶
func PreResolveTargetAddr ¶
func PreResolveTargetAddr(clientConf *phttp.ClientConfig, target string) (string, error)
DNS resolve optimisation. When DNSCache turned off - do nothing extra, host will be resolved on every shoot. When using resolved target, don't use DNS caching logic - it is useless. If we can resolve accessible target addr - use it as target, not use caching. Otherwise just use DNS cache - we should not fail shooting, we should try to connect on every shoot. DNS cache will save resolved addr after first successful connect.
Types ¶
type BaseGun ¶
type BaseGun struct { DebugLog bool // Automaticaly set in Bind if Log accepts debug messages. Config phttp.BaseGunConfig Connect func(ctx context.Context) error // Optional hook. OnClose func() error // Optional. Called on Close(). Aggregator netsample.Aggregator // Lazy set via BindResultTo. AnswLog *zap.Logger core.GunDeps // contains filtered or unexported fields }
func NewClientGun ¶
func NewHTTP2Gun ¶
func NewHTTP2Gun(conf phttp.HTTP2GunConfig, answLog *zap.Logger, targetResolved string) (*BaseGun, error)
NewHTTP2Gun return simple HTTP/2 gun that can shoot sequentially through one connection.
func NewHTTPGun ¶
type Postprocessor ¶
type Preprocessor ¶
type RequestParts ¶
type Templater ¶
type Templater interface {
Apply(request *RequestParts, variables map[string]any, scenarioName, stepName string) error
}
type VariableStorage ¶
Click to show internal directories.
Click to hide internal directories.