util

package
v1.29.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: LGPL-3.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeUnboundedChan added in v1.17.0

func MakeUnboundedChan[V any](sendCh chan<- V, log logger.Logger, bufferLimitWarning int) chan<- V

NOTE: please see https://github.com/goware/channel for an improved version of the below method.

converts a blocking unbuffered send channel into a non-blocking unbounded buffered one inspired by https://medium.com/capital-one-tech/building-an-unbounded-channel-in-go-789e175cd2cd

func ReadTestConfig added in v1.3.0

func ReadTestConfig(testConfigFile string) (map[string]string, error)

Types

type Alerter added in v1.23.0

type Alerter interface {
	Alert(ctx context.Context, format string, v ...interface{})
}

func NoopAlerter added in v1.23.0

func NoopAlerter() Alerter

Jump to

Keyboard shortcuts

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