File: metric.go

package info (click to toggle)
golang-github-openfga-go-sdk 0.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 1,960 kB
  • sloc: makefile: 13
file content (20 lines) | stat: -rw-r--r-- 300 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package telemetry

type Metric struct {
	Name        string
	Description string
	MetricInterface
}

type MetricInterface interface {
	GetName() string
	GetDescription() string
}

func (m *Metric) GetName() string {
	return m.Name
}

func (m *Metric) GetDescription() string {
	return m.Description
}