charge

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChargeCar

func ChargeCar(idchargingstation, iduser primitive.ObjectID, db *mongo.Database, insertedDoc evcharging.Charge) (bson.M, error)

func ChargeHandler

func ChargeHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string

func CheckAvailable

func CheckAvailable(db *mongo.Database, idchargingstation primitive.ObjectID) (bool, error)

func GetAllChargeByUser

func GetAllChargeByUser(iduser primitive.ObjectID, db *mongo.Database) (charge []evcharging.Charge, err error)

func GetChargeFromID

func GetChargeFromID(_id primitive.ObjectID, db *mongo.Database) (charge evcharging.Charge, err error)

func GetChargeHandler

func GetChargeHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string

func PaymentAndStatusChargeHandler

func PaymentAndStatusChargeHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string

func ProcessPayment

func ProcessPayment(_id, iduser primitive.ObjectID, db *mongo.Database, insertedDoc evcharging.Charge) (bson.M, error)

func ProcessStatus

func ProcessStatus(_id, iduser primitive.ObjectID, db *mongo.Database, insertedDoc evcharging.Charge) (bson.M, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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