utils

package
v0.0.0-...-c45e23a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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