utils

package
v0.0.0-...-2c8718e Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBackoff

func DefaultBackoff() *backoff.ExponentialBackOff

Types

type RateLimitedWriter

type RateLimitedWriter struct {
	// contains filtered or unexported fields
}

func NewRateLimitedWriter

func NewRateLimitedWriter(limitPerSecond float32, burst int, level logrus.Level) *RateLimitedWriter

func (*RateLimitedWriter) Fire

func (hook *RateLimitedWriter) Fire(entry *logrus.Entry) error

func (*RateLimitedWriter) Levels

func (hook *RateLimitedWriter) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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