github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/domain/repository/error_recorder.go (about) 1 package repository 2 3 import "context" 4 5 type ErrorRecorder interface { 6 Record(ctx context.Context, err error, userID string) 7 } 8 9 type NopErrorRecorder struct{} 10 11 func (ner *NopErrorRecorder) Record(ctx context.Context, err error, userID string) { 12 // nop 13 }