| 53 | } |
| 54 | |
| 55 | type LimitedLogger struct { |
| 56 | l *Logger |
| 57 | mode limitMode |
| 58 | key string |
| 59 | limit int |
| 60 | window time.Duration |
| 61 | } |
| 62 | |
| 63 | func (l *Logger) Once(key string) LimitedLogger { |
| 64 | return LimitedLogger{ |
nothing calls this directly
no outgoing calls
no test coverage detected