Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// ParentSvg is a map of sv/svg id to a list of its parent svgs sorted alphabetically.
ParentSvg map[string][]string
// SvgInfo is a map of svg id to its information.
SvgInfo map[string]*pb.StatVarGroupNode
SvgSearchIndex *SearchIndex
BlocklistedSvgSearchIndex *SearchIndex
}
Cache holds cached data for the mixer server.
type Metadata ¶
type Metadata struct {
Mappings []*types.Mapping
OutArcInfo map[string]map[string][]types.OutArcInfo
InArcInfo map[string][]types.InArcInfo
SubTypeMap map[string]string
Bq string
BtProject string
BranchBtInstance string
}
Metadata represents the metadata used by the server.
type RankingInfo ¶
type RankingInfo struct {
// ApproxNumPv is an estimate of the number of PVs in the sv/svg.
ApproxNumPv int
// RankingName is the name we will be using to rank this sv/svg against other
// sv/svg.
RankingName string
}
RankingInfo holds the ranking information for each stat var hierarchy search result.
type SearchIndex ¶
type SearchIndex struct {
TokenSVMap map[string]map[string]struct{}
TokenSVGMap map[string]map[string]struct{}
Ranking map[string]*RankingInfo
}
SearchIndex holds the index for searching stat var (group).
Click to show internal directories.
Click to hide internal directories.