Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValueGenerator ¶
type KeyValueGenerator struct { FieldIndex int FieldType reflect.Type LabelName string T reflect.Type }
func (*KeyValueGenerator) GenerateFromValue ¶
func (g *KeyValueGenerator) GenerateFromValue(v interface{}) KeyValue
type RecursiveReflector ¶
type RecursiveReflector struct { Lr *Reflector Ln types.LabelNames Fields map[int]*RecursiveReflector T reflect.Type }
type Reflector ¶
type Reflector struct { Generators []KeyValueGenerator T reflect.Type }
LabelReflector uses a struct values to extract Labels
func (*Reflector) LabelsForValue ¶
func (lr *Reflector) LabelsForValue(v interface{}) prometheus.Labels
Click to show internal directories.
Click to hide internal directories.