MCPcopy
hub / github.com/netdata/netdata / Once

Method Once

src/go/logger/ratelimit.go:63–71  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

61}
62
63func (l *Logger) Once(key string) LimitedLogger {
64 return LimitedLogger{
65 l: l,
66 mode: modeOnce,
67 key: key,
68 limit: 1,
69 window: 0,
70 }
71}
72
73func (l *Logger) Limit(key string, n int, d time.Duration) LimitedLogger {
74 if n <= 0 {

Implementers 7

ProtocolClientsrc/go/plugin/ibm.d/framework/protocol
CollectorStatesrc/go/plugin/ibm.d/framework/types.go
nopLoggersrc/go/plugin/ibm.d/protocols/webspher
testLoggersrc/go/plugin/ibm.d/protocols/jmxbridg
Loggersrc/go/logger/logger.go
ConditionalLoggersrc/go/logger/conditional.go
LimitedLoggersrc/go/logger/ratelimit.go

Calls

no outgoing calls