Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

placebo

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:8Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeConfig

type Config struct {// Sleep is how long to sleep for. If unspecified, the test run will finish// instantly.Sleephttpapi.Duration `json:"sleep"`// Jitter is the maximum amount of jitter to add to the sleep duration. The// sleep value will be increased by a random value between 0 and jitter if// jitter is greater than 0.Jitterhttpapi.Duration `json:"jitter"`// FailureChance is the chance that the test will fail. The value must be// between 0 and 1.FailureChancefloat64 `json:"failure_chance"`}

func (Config)Validate

func (cConfig) Validate()error

typeRunner

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

funcNewRunner

func NewRunner(cfgConfig) *Runner

NewRunner creates a new placebo loadtest Runner. The test will sleep for thespecified duration if set, and will add a random amount of jitter between 0and the specified jitter value if set.

func (*Runner)Run

func (r *Runner) Run(ctxcontext.Context, _string, logsio.Writer)error

Run implements Runnable.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp