Implement rpc exporter

This commit is contained in:
ionutboangiu
2022-01-19 15:37:08 +02:00
committed by Dan Christian Bogos
parent f204d474bd
commit 14dfda53be
13 changed files with 291 additions and 16 deletions

View File

@@ -535,6 +535,10 @@ func DurationPointer(d time.Duration) *time.Duration {
return &d
}
func SliceStringPointer(d []string) *[]string {
return &d
}
func ToIJSON(v interface{}) string {
b, _ := json.MarshalIndent(v, "", " ")
return string(b)