package
0.0.0-20241126174157-3642d298bc80
Repository: https://github.com/getsentry/go-load-tester.git
Documentation: pkg.go.dev

# Functions

Divide Distributes numerator into denominator pieces as equally as possible.
EnvelopeFromBody creates the body of a session shamelessly stolen and modified from sentry-go/transport.go.
ExponentialBackoff returns an exponentially increasing Duration the duration will increase until the maximum duration is reached after which it will return that duration forever.
FileExists returns True if a file exists ( it must be a file i.e.
No description provided by the author
No description provided by the author
GetProjectProvider returns the current project provider.
No description provided by the author
LoadFileProjectProvider loads projects from a json file containing a list of projectId to projectKey mappings.
LowerFirstLetter converts the first letter to lower case.
No description provided by the author
PerSecond converts a number of elements per random duration in elements per second.
PrivateKeyFromString creates a private key (and does some basic validation) from base64URL encoded public/private key pair.
RandomChoice implements the weighted version of the python random.choices standard function if relativeWeights is empty or smaller than choices weights of 1 will be considered for the missing weights, if more weights are passed they will be ignored.
No description provided by the author
RelayAuthSign signs the given data for Relay authentication (the data should be the body of the request).
SimpleRandomChoice returns one of the given choices picked up randomly, with the same probability for each choice.
UuidAsHex similar with uuid.hex from python ( returns the UUID as a hex string without - ).

# Constants

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

ProjectFreqProfile defines the frequency relative to other profiles in which a project is picked.
ProjectProvider can be used to get project Ids and keys for testing.

# Type aliases

StringDuration a duration that serializes in Json/Yaml as a string e.g.