github.com/0xsequence/ethkit@v1.25.0/util/alerter.go (about) 1 package util 2 3 import "context" 4 5 type Alerter interface { 6 Alert(ctx context.Context, format string, v ...interface{}) 7 } 8 9 func NoopAlerter() Alerter { 10 return noopAlerter{} 11 } 12 13 type noopAlerter struct{} 14 15 func (noopAlerter) Alert(ctx context.Context, format string, v ...interface{}) {}