Documentation
¶
Index ¶
- func AntsPool(maxInFlight int) (*ants.Pool, error)
- func CalculateEndToEndLatency(payload *[]byte) (time.Time, time.Duration)
- func FormatTimestamp(timestamp uint64) time.Time
- func GetEndpoints(serviceName string) ([]string, error)
- func InjectId(s string, id int) string
- func MessageBody(size int) []byte
- func ParseURI(rawURI string, defaultScheme string, defaultPort string) uri
- func Rate(rate float32) string
- func RateLimiter(publishRate float32) *rate.Limiter
- func UpdatePayload(useMillis bool, payload *[]byte) *[]byte
- func WrappedSequence(len int, start int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTimestamp ¶ added in v0.7.0
func GetEndpoints ¶ added in v0.21.0
K8sGet performs a GET request on the Kubernetes API with the given URL; We only need 1 GET on a simple REST endpoint, and this way we avoid importing go-client with lots of dependencies
func MessageBody ¶
func RateLimiter ¶ added in v0.24.0
func UpdatePayload ¶
func WrappedSequence ¶ added in v0.7.1
generate a sequence of `len` integres starting with `start` and wrapped, so that it contains all values from 0 to len-1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.