b4cd51810b
* SecretsManager: utils for usage insights on ST mode Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> * SecretsManager: add assert Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com> * SecretsManager: Remove encryption scope option Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> * SecretsManager: add fake keeper Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com> Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com> Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> --------- Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>
18 lines
423 B
Go
18 lines
423 B
Go
package usagestats
|
|
|
|
import "context"
|
|
|
|
type NoopUsageStats struct{}
|
|
|
|
var _ Service = &NoopUsageStats{}
|
|
|
|
func (usm *NoopUsageStats) RegisterMetricsFunc(_ MetricsFunc) {}
|
|
|
|
func (usm *NoopUsageStats) GetUsageReport(_ context.Context) (Report, error) {
|
|
return Report{}, nil
|
|
}
|
|
|
|
func (usm *NoopUsageStats) RegisterSendReportCallback(_ SendReportCallbackFunc) {}
|
|
|
|
func (usm *NoopUsageStats) SetReadyToReport(_ context.Context) {}
|