Documentation ¶
Index ¶
- Variables
- func GetLocationsRankings(ctx context.Context, in *pb.GetLocationsRankingsRequest, store *store.Store) (*pb.GetLocationsRankingsResponse, error)
- func GetPlaceMetadataHelper(ctx context.Context, entities []string, store *store.Store) (map[string]*pb.PlaceMetadata, error)
- func GetPlaceStatDateWithinPlace(ctx context.Context, in *pb.GetPlaceStatDateWithinPlaceRequest, ...) (*pb.GetPlaceStatDateWithinPlaceResponse, error)
- func GetRelatedLocations(ctx context.Context, in *pb.GetRelatedLocationsRequest, store *store.Store) (*pb.GetRelatedLocationsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RelatedLocationsPrefixMap = map[bool]map[bool]string{ // contains filtered or unexported fields }
RelatedLocationsPrefixMap is a map from different scenarios to key prefix for RelatedLocations cache.
The three levels of keys are: - Whether related locations have the same ancestor. - Whether related locations have the same place type. - Whether closeness computaion is per capita.
Functions ¶
func GetLocationsRankings ¶
func GetLocationsRankings( ctx context.Context, in *pb.GetLocationsRankingsRequest, store *store.Store, ) (*pb.GetLocationsRankingsResponse, error)
GetLocationsRankings implements API for Mixer.GetLocationsRankings.
func GetPlaceMetadataHelper ¶ added in v1.34.0
func GetPlaceMetadataHelper( ctx context.Context, entities []string, store *store.Store, ) (map[string]*pb.PlaceMetadata, error)
GetPlaceMetadataHelper is a wrapper to get place metadata.
func GetPlaceStatDateWithinPlace ¶
func GetPlaceStatDateWithinPlace( ctx context.Context, in *pb.GetPlaceStatDateWithinPlaceRequest, store *store.Store) ( *pb.GetPlaceStatDateWithinPlaceResponse, error)
GetPlaceStatDateWithinPlace implements API for Mixer.GetPlaceStatDateWithinPlace.
func GetRelatedLocations ¶
func GetRelatedLocations( ctx context.Context, in *pb.GetRelatedLocationsRequest, store *store.Store, ) (*pb.GetRelatedLocationsResponse, error)
GetRelatedLocations implements API for Mixer.GetRelatedLocations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.