database

package
v0.0.0-...-d6ac5bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URI = os.Getenv("MONGO_URI")

Functions

func AddAlert

func AddAlert(email string, priceCheck int64) error

func DelAlert

func DelAlert(email string) error

func SearchPrice

func SearchPrice(price float64) (emails []string)

Types

type Record

type Record struct {
	Email        string `bson:"email"`
	PriceToCheck int64  `bson:"priceCheck"`
	Status       string `bson:"stat"`
}

func SearchAlerts

func SearchAlerts(email string) ([]Record, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL