util

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRandomSample

func LogRandomSample(msg string, logger LogMsg, chance float32)

LogRandomSample will log a randam sample of the messages it is sent, based on the chance to log chance = 1.0 => always log, chance = 0.0 => never log

Types

type LogMsg

type LogMsg func(string, ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL