Documentation
¶
Index ¶
- func BuildParentSvgMap(rawSvg map[string]*pb.StatVarGroupNode) map[string][]string
- func BuildStatVarSearchIndex(rawSvg map[string]*pb.StatVarGroupNode, blocklist bool) *resource.SearchIndex
- func CountStatVar(ctx context.Context, store *store.Store, svOrSvgs []string, places []string) (map[string]map[string]int32, error)
- func GetPlaceStatVars(ctx context.Context, in *pb.GetPlaceStatVarsRequest, store *store.Store) (*pb.GetPlaceStatVarsResponse, error)
- func GetPlaceStatVarsUnionV1(ctx context.Context, in *pb.GetPlaceStatVarsUnionRequest, store *store.Store) (*pb.GetPlaceStatVarsUnionResponse, error)
- func GetPlaceStatsVar(ctx context.Context, in *pb.GetPlaceStatsVarRequest, store *store.Store) (*pb.GetPlaceStatsVarResponse, error)
- func GetRawSvg(ctx context.Context, baseTable *cbt.Table) (map[string]*pb.StatVarGroupNode, error)
- func GetStatVarGroup(ctx context.Context, in *pb.GetStatVarGroupRequest, store *store.Store) (*pb.StatVarGroups, error)
- func GetStatVarGroupNode(ctx context.Context, in *pb.GetStatVarGroupNodeRequest, store *store.Store, ...) (*pb.StatVarGroupNode, error)
- func GetStatVarPath(ctx context.Context, in *pb.GetStatVarPathRequest, store *store.Store, ...) (*pb.GetStatVarPathResponse, error)
- func GetStatVarSummary(ctx context.Context, in *pb.GetStatVarSummaryRequest, store *store.Store) (*pb.GetStatVarSummaryResponse, error)
- func SearchStatVar(ctx context.Context, in *pb.SearchStatVarRequest, store *store.Store, ...) (*pb.SearchStatVarResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildParentSvgMap ¶
func BuildParentSvgMap(rawSvg map[string]*pb.StatVarGroupNode) map[string][]string
BuildParentSvgMap gets the mapping of svg/sv id to the parent svg for that svg/sv.
func BuildStatVarSearchIndex ¶
func BuildStatVarSearchIndex( rawSvg map[string]*pb.StatVarGroupNode, blocklist bool) *resource.SearchIndex
BuildStatVarSearchIndex builds the search index for the stat var hierarchy.
func CountStatVar ¶
func CountStatVar( ctx context.Context, store *store.Store, svOrSvgs []string, places []string) (map[string]map[string]int32, error)
CountStatVar checks if places have data for stat vars and stat var groups Returns a two level map from stat var dcid to place dcid to the number of stat vars with data. For a given stat var, if a place has no data, it will not show up in the second level map.
func GetPlaceStatVars ¶
func GetPlaceStatVars( ctx context.Context, in *pb.GetPlaceStatVarsRequest, store *store.Store) ( *pb.GetPlaceStatVarsResponse, error)
GetPlaceStatVars implements API for Mixer.GetPlaceStatVars.
func GetPlaceStatVarsUnionV1 ¶
func GetPlaceStatVarsUnionV1( ctx context.Context, in *pb.GetPlaceStatVarsUnionRequest, store *store.Store, ) (*pb.GetPlaceStatVarsUnionResponse, error)
GetPlaceStatVarsUnionV1 implements API for Mixer.GetPlaceStatVarsUnionV1.
func GetPlaceStatsVar ¶
func GetPlaceStatsVar( ctx context.Context, in *pb.GetPlaceStatsVarRequest, store *store.Store) ( *pb.GetPlaceStatsVarResponse, error)
GetPlaceStatsVar implements API for Mixer.GetPlaceStatsVar. TODO(shifucun): Migrate clients to use GetPlaceStatVars and deprecate this.
func GetStatVarGroup ¶
func GetStatVarGroup( ctx context.Context, in *pb.GetStatVarGroupRequest, store *store.Store) ( *pb.StatVarGroups, error)
GetStatVarGroup implements API for Mixer.GetStatVarGroup.
func GetStatVarGroupNode ¶
func GetStatVarGroupNode( ctx context.Context, in *pb.GetStatVarGroupNodeRequest, store *store.Store, cache *resource.Cache, ) ( *pb.StatVarGroupNode, error)
GetStatVarGroupNode implements API for Mixer.GetStatVarGroupNode.
func GetStatVarPath ¶
func GetStatVarPath( ctx context.Context, in *pb.GetStatVarPathRequest, store *store.Store, cache *resource.Cache, ) ( *pb.GetStatVarPathResponse, error)
GetStatVarPath implements API for Mixer.GetStatVarPath.
func GetStatVarSummary ¶
func GetStatVarSummary( ctx context.Context, in *pb.GetStatVarSummaryRequest, store *store.Store) ( *pb.GetStatVarSummaryResponse, error)
GetStatVarSummary implements API for Mixer.GetStatVarSummary.
func SearchStatVar ¶
func SearchStatVar( ctx context.Context, in *pb.SearchStatVarRequest, store *store.Store, cache *resource.Cache, ) ( *pb.SearchStatVarResponse, error, )
SearchStatVar implements API for Mixer.SearchStatVar.
Types ¶
This section is empty.