charging_station

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckChargingKode

func CheckChargingKode(db *mongo.Database, chargingkode string) bool

func CheckLatitudeLongitude

func CheckLatitudeLongitude(db *mongo.Database, latitude, longitude string) bool

func DeleteChargingStationOlehAdmin

func DeleteChargingStationOlehAdmin(_id primitive.ObjectID, db *mongo.Database) error

func GetAllChargingStation

func GetAllChargingStation(db *mongo.Database) (charging []evcharging.ChargingStation, err error)

func GetChargingStationFromID

func GetChargingStationFromID(_id primitive.ObjectID, db *mongo.Database) (doc evcharging.ChargingStation, err error)

func GetChargingStationHandler

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

func HapusChargingStationHandler

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

func Post

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

func PostChargingStationOlehAdmin

func PostChargingStationOlehAdmin(db *mongo.Database, r *http.Request) (bson.M, error)

By Admin

func Put

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

func PutChargingStationOlehAdmin

func PutChargingStationOlehAdmin(_id primitive.ObjectID, db *mongo.Database, r *http.Request) (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