util

package
Version: v0.180.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

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{})

Source Files

Jump to

Keyboard shortcuts

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