Documentation ¶
Index ¶
- func CreatePriceAgentForUser(priceAgent *models.PriceAgent) error
- func CreateUser(user models.User) error
- func CreateUserWithCache(user models.User)
- func DeleteDisabledPriceagents() error
- func DeletePriceAgentForUser(priceAgent models.PriceAgent) error
- func DeleteUser(userID int64)
- func DeleteUserWithCache(userID int64)
- func GetActivePriceAgents() ([]models.PriceAgent, error)
- func GetAllEntities() ([]geizhals.Entity, error)
- func GetAllEntitiesWithPriceagents() ([]geizhals.Entity, error)
- func GetAllUsers() []models.User
- func GetDarkmode(userID int64) bool
- func GetPriceAgentCount() int64
- func GetPriceAgentCountForUser(userID int64) int64
- func GetPriceAgentProductCount() int64
- func GetPriceAgentWishlistCount() int64
- func GetPriceAgentsForEntity(entityID int64) ([]models.PriceAgent, error)
- func GetPriceagentForUserByID(userID int64, priceagentID int64) (models.PriceAgent, error)
- func GetProductPriceagentsForUser(userID int64) ([]models.PriceAgent, error)
- func GetUserCount() int64
- func GetUserFromCache(userID int64) models.User
- func GetWishlistPriceagentsForUser(userID int64) ([]models.PriceAgent, error)
- func HasUserPriceAgentForEntity(userID int64, entityID int64) (bool, error)
- func InitDB()
- func PopulateCaches()
- func UpdateDarkMode(userID int64, darkMode bool)
- func UpdateEntity(entity geizhals.Entity)
- func UpdateEntityPrice(price geizhals.EntityPrice)
- func UpdateNotificationSettings(userID int64, priceagentID int64, notifSettings models.NotificationSettings) error
- func UpdatePriceagent(priceagent models.PriceAgent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePriceAgentForUser ¶
func CreatePriceAgentForUser(priceAgent *models.PriceAgent) error
func CreateUser ¶
func CreateUserWithCache ¶
CreateUserWithCache checks if a user already exists in cache/db and creates a user in the database and cache if it does not exist
func DeleteDisabledPriceagents ¶
func DeleteDisabledPriceagents() error
func DeletePriceAgentForUser ¶
func DeletePriceAgentForUser(priceAgent models.PriceAgent) error
func DeleteUser ¶
func DeleteUser(userID int64)
DeleteUser deletes a user and their PriceAgents from the database
func DeleteUserWithCache ¶
func DeleteUserWithCache(userID int64)
func GetActivePriceAgents ¶
func GetActivePriceAgents() ([]models.PriceAgent, error)
func GetAllEntities ¶
func GetAllUsers ¶
func GetDarkmode ¶
func GetPriceAgentCount ¶
func GetPriceAgentCount() int64
func GetPriceAgentProductCount ¶
func GetPriceAgentProductCount() int64
func GetPriceAgentWishlistCount ¶
func GetPriceAgentWishlistCount() int64
func GetPriceAgentsForEntity ¶
func GetPriceAgentsForEntity(entityID int64) ([]models.PriceAgent, error)
GetPriceAgentsForEntity returns all priceagents for a given entity
func GetPriceagentForUserByID ¶
func GetPriceagentForUserByID(userID int64, priceagentID int64) (models.PriceAgent, error)
func GetProductPriceagentsForUser ¶
func GetProductPriceagentsForUser(userID int64) ([]models.PriceAgent, error)
func GetUserCount ¶
func GetUserCount() int64
func GetUserFromCache ¶
func GetWishlistPriceagentsForUser ¶
func GetWishlistPriceagentsForUser(userID int64) ([]models.PriceAgent, error)
func HasUserPriceAgentForEntity ¶
HasUserPriceAgentForEntity checks if a user already has a priceagent for a given entity
func PopulateCaches ¶
func PopulateCaches()
PopulateCaches populates all the caches from the database
func UpdateDarkMode ¶
func UpdateEntity ¶
func UpdateEntityPrice ¶
func UpdateEntityPrice(price geizhals.EntityPrice)
func UpdateNotificationSettings ¶
func UpdateNotificationSettings(userID int64, priceagentID int64, notifSettings models.NotificationSettings) error
func UpdatePriceagent ¶
func UpdatePriceagent(priceagent models.PriceAgent) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.