Alejandro Lopez
ebcc8afbee
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
15 lines
381 B
Go
15 lines
381 B
Go
package metrics
|
|
|
|
import "time"
|
|
|
|
type Register interface {
|
|
SetEpoch(epoch uint64)
|
|
SetHealth(s int32)
|
|
AddEvent(d time.Duration, typ string, success bool)
|
|
}
|
|
|
|
type DefaultRegister struct{}
|
|
|
|
func (DefaultRegister) SetEpoch(uint64) {}
|
|
func (DefaultRegister) SetHealth(int32) {}
|
|
func (DefaultRegister) AddEvent(time.Duration, string, bool) {}
|