Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelsReader ¶
type LabelsReader interface { // LabelNames returns all the distinct label names in the system. LabelNames() ([]string, error) // LabelValues returns all the distinct values for a given label name. LabelValues(labelName string) ([]string, error) // LabelsForIdMap fills in the label.Label values in a map of label id => labels.Label. LabelsForIdMap(idMap map[int64]labels.Label) (err error) }
LabelsReader defines the methods for accessing labels data
func NewLabelsReader ¶
func NewLabelsReader(conn pgxconn.PgxConn, labels cache.LabelsCache, mt tenancy.ReadAuthorizer) LabelsReader
Click to show internal directories.
Click to hide internal directories.