Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLimiter ¶
type LogLimiter struct {
// contains filtered or unexported fields
}
LogLimiter will suppress log messages if the same log message is seen within some time interval.
func New ¶
func New(interval time.Duration) *LogLimiter
New returns a new LogLimiter with the configured minimum log interval.
func (*LogLimiter) Print ¶
func (limiter *LogLimiter) Print(s string)
func (*LogLimiter) Printf ¶
func (limiter *LogLimiter) Printf(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.