Documentation ¶
Overview ¶
Package db implements database interactions for neutral-diet service RPCs.
Index ¶
- type FoodItemInfo
- type Store
- func (s *Store) AddCarbonFootprintGoal(ctx context.Context, r *userv1.AddCarbonFootprintGoalRequest, ...) (*userv1.AddCarbonFootprintGoalResponse, error)
- func (s *Store) AddDevice(ctx context.Context, r *userv1.AddDeviceRequest, firebaseUID string) (*userv1.AddDeviceResponse, error)
- func (s *Store) AddFoodItemToLog(ctx context.Context, r *userv1.AddFoodItemRequest, firebaseUID string) (*userv1.AddFoodItemResponse, error)
- func (s *Store) CreateFoodItem(ctx context.Context, r *foodv1.CreateFoodItemRequest) (*foodv1.CreateFoodItemResponse, error)
- func (s *Store) CreateLifeCycle(ctx context.Context, r *foodv1.CreateLifeCycleRequest) (*foodv1.CreateLifeCycleResponse, error)
- func (s *Store) CreateSource(ctx context.Context, r *foodv1.CreateSourceRequest) (*foodv1.CreateSourceResponse, error)
- func (s *Store) CreateSubTypology(ctx context.Context, r *foodv1.CreateSubTypologyRequest) (*foodv1.CreateSubTypologyResponse, error)
- func (s *Store) CreateTypology(ctx context.Context, r *foodv1.CreateTypologyRequest) (*foodv1.CreateTypologyResponse, error)
- func (s *Store) CreateUser(ctx context.Context, r *userv1.CreateUserRequest) (*userv1.CreateUserResponse, error)
- func (s *Store) DeleteCarbonFootprintGoal(ctx context.Context, r *userv1.DeleteCarbonFootprintGoalRequest, ...) (*userv1.DeleteCarbonFootprintGoalResponse, error)
- func (s *Store) DeleteFoodItemFromLog(ctx context.Context, r *userv1.DeleteFoodItemRequest, firebaseUID string) (*userv1.DeleteFoodItemResponse, error)
- func (s *Store) DeleteUser(ctx context.Context, firebaseUID string) (*userv1.DeleteUserResponse, error)
- func (s *Store) GetCarbonFootprintGoals(ctx context.Context, r *userv1.GetCarbonFootprintGoalsRequest, ...) (*userv1.GetCarbonFootprintGoalsResponse, error)
- func (s *Store) GetFoodItemInfo(ctx context.Context, r *foodv1.GetFoodItemInfoRequest) (*foodv1.GetFoodItemInfoResponse, error)
- func (s *Store) GetFoodItemLog(ctx context.Context, r *userv1.GetFoodItemLogRequest, firebaseUID string) (*userv1.GetFoodItemLogResponse, error)
- func (s *Store) GetFoodItemLogDays(ctx context.Context, r *userv1.GetFoodItemLogDaysRequest, firebaseUID string) (*userv1.GetFoodItemLogDaysResponse, error)
- func (s *Store) GetUser(ctx context.Context, firebaseUID string) (*userv1.GetUserSettingsResponse, error)
- func (s *Store) GetUserInsights(ctx context.Context, r *userv1.GetUserInsightsRequest, firebaseUID string) (*userv1.GetUserInsightsResponse, error)
- func (s *Store) GetUserProgress(ctx context.Context, r *userv1.GetUserProgressRequest, firebaseUID string) (*userv1.GetUserProgressResponse, error)
- func (s *Store) ListAggregateFoodItems(ctx context.Context, r *foodv1.ListAggregateFoodItemsRequest) (*foodv1.ListAggregateFoodItemsResponse, error)
- func (s *Store) ListSubTypologyNames(ctx context.Context) (*foodv1.ListSubTypologyNamesResponse, error)
- func (s *Store) ListTypologyNames(ctx context.Context) (*foodv1.ListTypologyNamesResponse, error)
- func (s *Store) MarkCompletedGoals(ctx context.Context)
- func (s *Store) RemoveStaleRegistrationTokens(ctx context.Context)
- func (s *Store) SendGoalNotifications(ctx context.Context, m *messaging.Client)
- func (s *Store) SendStreakNotifications(ctx context.Context, m *messaging.Client)
- func (s *Store) UpdateCarbonFootprintGoal(ctx context.Context, r *userv1.UpdateCarbonFootprintGoalRequest, ...) (*userv1.UpdateCarbonFootprintGoalResponse, error)
- func (s *Store) UpdateFoodItemFromLog(ctx context.Context, r *userv1.UpdateFoodItemRequest, firebaseUID string) (*userv1.UpdateFoodItemResponse, error)
- func (s *Store) UpdateUserSettings(ctx context.Context, r *userv1.UpdateUserSettingsRequest, firebaseUID string) (*userv1.UpdateUserSettingsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FoodItemInfo ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store represents a connection pool to the database.
func (*Store) AddCarbonFootprintGoal ¶
func (s *Store) AddCarbonFootprintGoal( ctx context.Context, r *userv1.AddCarbonFootprintGoalRequest, firebaseUID string, ) (*userv1.AddCarbonFootprintGoalResponse, error)
func (*Store) AddDevice ¶
func (s *Store) AddDevice( ctx context.Context, r *userv1.AddDeviceRequest, firebaseUID string, ) (*userv1.AddDeviceResponse, error)
func (*Store) AddFoodItemToLog ¶
func (s *Store) AddFoodItemToLog( ctx context.Context, r *userv1.AddFoodItemRequest, firebaseUID string, ) (*userv1.AddFoodItemResponse, error)
func (*Store) CreateFoodItem ¶
func (s *Store) CreateFoodItem( ctx context.Context, r *foodv1.CreateFoodItemRequest, ) (*foodv1.CreateFoodItemResponse, error)
func (*Store) CreateLifeCycle ¶
func (s *Store) CreateLifeCycle( ctx context.Context, r *foodv1.CreateLifeCycleRequest, ) (*foodv1.CreateLifeCycleResponse, error)
func (*Store) CreateSource ¶
func (s *Store) CreateSource( ctx context.Context, r *foodv1.CreateSourceRequest, ) (*foodv1.CreateSourceResponse, error)
func (*Store) CreateSubTypology ¶
func (s *Store) CreateSubTypology( ctx context.Context, r *foodv1.CreateSubTypologyRequest, ) (*foodv1.CreateSubTypologyResponse, error)
func (*Store) CreateTypology ¶
func (s *Store) CreateTypology( ctx context.Context, r *foodv1.CreateTypologyRequest, ) (*foodv1.CreateTypologyResponse, error)
func (*Store) CreateUser ¶
func (s *Store) CreateUser( ctx context.Context, r *userv1.CreateUserRequest, ) (*userv1.CreateUserResponse, error)
func (*Store) DeleteCarbonFootprintGoal ¶
func (s *Store) DeleteCarbonFootprintGoal( ctx context.Context, r *userv1.DeleteCarbonFootprintGoalRequest, firebaseUID string, ) (*userv1.DeleteCarbonFootprintGoalResponse, error)
func (*Store) DeleteFoodItemFromLog ¶
func (s *Store) DeleteFoodItemFromLog( ctx context.Context, r *userv1.DeleteFoodItemRequest, firebaseUID string, ) (*userv1.DeleteFoodItemResponse, error)
func (*Store) DeleteUser ¶
func (*Store) GetCarbonFootprintGoals ¶
func (s *Store) GetCarbonFootprintGoals( ctx context.Context, r *userv1.GetCarbonFootprintGoalsRequest, firebaseUID string, ) (*userv1.GetCarbonFootprintGoalsResponse, error)
func (*Store) GetFoodItemInfo ¶
func (s *Store) GetFoodItemInfo( ctx context.Context, r *foodv1.GetFoodItemInfoRequest, ) (*foodv1.GetFoodItemInfoResponse, error)
func (*Store) GetFoodItemLog ¶
func (s *Store) GetFoodItemLog( ctx context.Context, r *userv1.GetFoodItemLogRequest, firebaseUID string, ) (*userv1.GetFoodItemLogResponse, error)
func (*Store) GetFoodItemLogDays ¶
func (s *Store) GetFoodItemLogDays( ctx context.Context, r *userv1.GetFoodItemLogDaysRequest, firebaseUID string, ) (*userv1.GetFoodItemLogDaysResponse, error)
func (*Store) GetUserInsights ¶
func (s *Store) GetUserInsights( ctx context.Context, r *userv1.GetUserInsightsRequest, firebaseUID string, ) (*userv1.GetUserInsightsResponse, error)
func (*Store) GetUserProgress ¶
func (s *Store) GetUserProgress( ctx context.Context, r *userv1.GetUserProgressRequest, firebaseUID string, ) (*userv1.GetUserProgressResponse, error)
func (*Store) ListAggregateFoodItems ¶
func (s *Store) ListAggregateFoodItems( ctx context.Context, r *foodv1.ListAggregateFoodItemsRequest, ) (*foodv1.ListAggregateFoodItemsResponse, error)
func (*Store) ListSubTypologyNames ¶
func (*Store) ListTypologyNames ¶
func (*Store) MarkCompletedGoals ¶
func (*Store) RemoveStaleRegistrationTokens ¶
func (*Store) SendGoalNotifications ¶
func (*Store) SendStreakNotifications ¶
func (*Store) UpdateCarbonFootprintGoal ¶
func (s *Store) UpdateCarbonFootprintGoal( ctx context.Context, r *userv1.UpdateCarbonFootprintGoalRequest, firebaseUID string, ) (*userv1.UpdateCarbonFootprintGoalResponse, error)
func (*Store) UpdateFoodItemFromLog ¶
func (s *Store) UpdateFoodItemFromLog( ctx context.Context, r *userv1.UpdateFoodItemRequest, firebaseUID string, ) (*userv1.UpdateFoodItemResponse, error)
func (*Store) UpdateUserSettings ¶
func (s *Store) UpdateUserSettings( ctx context.Context, r *userv1.UpdateUserSettingsRequest, firebaseUID string, ) (*userv1.UpdateUserSettingsResponse, error)
Click to show internal directories.
Click to hide internal directories.