Movatterモバイル変換


[0]ホーム

URL:


loadtestutil

package
v2.28.4Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License:AGPL-3.0Imports:5Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (// Prefix for all scaletest resources (users and workspaces)ScaleTestPrefix = "scaletest"// Email domain for scaletest usersEmailDomain = "@scaletest.local"DefaultRandLength = 8)

Variables

This section is empty.

Functions

funcGenerateUserIdentifieradded inv2.27.0

func GenerateUserIdentifier(idstring) (username, emailstring, errerror)

GenerateUserIdentifier generates a username and email for scale testing.The username follows the pattern: scaletest-<random>-<id>The email follows the pattern: <random>-<id>@scaletest.local

funcGenerateWorkspaceNameadded inv2.27.0

func GenerateWorkspaceName(idstring) (namestring, errerror)

GenerateWorkspaceName generates a workspace name for scale testing.The workspace name follows the pattern: scaletest-<random>-<id>

funcIsScaleTestUseradded inv2.27.0

func IsScaleTestUser(username, emailstring)bool

IsScaleTestUser checks if a username indicates it was created for scale testing.

funcIsScaleTestWorkspaceadded inv2.27.0

func IsScaleTestWorkspace(workspaceName, ownerNamestring)bool

IsScaleTestWorkspace checks if a workspace name indicates it was created for scale testing.

Types

typeSyncWriter

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

SyncWriter wraps an io.Writer in a sync.Mutex.

funcNewSyncWriter

func NewSyncWriter(wio.Writer) *SyncWriter

func (*SyncWriter)Close

func (sw *SyncWriter) Close()error

func (*SyncWriter)Write

func (sw *SyncWriter) Write(p []byte) (nint, errerror)

Write implements io.Writer.

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