Documentation
¶
Index ¶
- Variables
- func GetChildPlaces(ctx context.Context, s *store.Store, parentPlace string, childType string) ([]string, error)
- func GetLocationsRankings(ctx context.Context, in *pb.GetLocationsRankingsRequest, store *store.Store) (*pb.GetLocationsRankingsResponse, error)
- func GetPlaceMetadata(ctx context.Context, in *pb.GetPlaceMetadataRequest, store *store.Store) (*pb.GetPlaceMetadataResponse, error)
- func GetPlaceStatDateWithinPlace(ctx context.Context, in *pb.GetPlaceStatDateWithinPlaceRequest, ...) (*pb.GetPlaceStatDateWithinPlaceResponse, error)
- func GetPlacesIn(ctx context.Context, in *pb.GetPlacesInRequest, store *store.Store) (*pb.GetPlacesInResponse, error)
- func GetRelatedLocations(ctx context.Context, in *pb.GetRelatedLocationsRequest, store *store.Store) (*pb.GetRelatedLocationsResponse, error)
Constants ¶
This section is empty.
Variables ¶
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 GetChildPlaces ¶
func GetChildPlaces( ctx context.Context, s *store.Store, parentPlace string, childType string) ( []string, error, )
GetChildPlaces fetches child places given parent place and child place type.
func GetLocationsRankings ¶
func GetLocationsRankings(ctx context.Context, in *pb.GetLocationsRankingsRequest, store *store.Store) (*pb.GetLocationsRankingsResponse, error)
GetLocationsRankings implements API for Mixer.GetLocationsRankings.
func GetPlaceMetadata ¶
func GetPlaceMetadata(ctx context.Context, in *pb.GetPlaceMetadataRequest, store *store.Store) ( *pb.GetPlaceMetadataResponse, error)
GetPlaceMetadata implements API for Mixer.GetPlaceMetadata.
func GetPlaceStatDateWithinPlace ¶
func GetPlaceStatDateWithinPlace( ctx context.Context, in *pb.GetPlaceStatDateWithinPlaceRequest, store *store.Store) ( *pb.GetPlaceStatDateWithinPlaceResponse, error)
GetPlaceStatDateWithinPlace implements API for Mixer.GetPlaceStatDateWithinPlace.
func GetPlacesIn ¶
func GetPlacesIn(ctx context.Context, in *pb.GetPlacesInRequest, store *store.Store) ( *pb.GetPlacesInResponse, error)
GetPlacesIn implements API for Mixer.GetPlacesIn.
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.