goqrcode

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 16 Imported by: 0

README

goqrcode

Generator code qr language Go | PASS/OK //Coba-Coba

jangan lupa untuk di publish

go get -u all
git tag
git tag version example v0.0.0
git push origin --tags //untuk push tag
go list -m github.com/PakArbi/goqrcode@version //example github.com/PakArbi/goqrcode@v0.0.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GCFGenerate added in v0.1.0

func GCFGenerate(MONGOCONNSTRINGENV, dbname, collectionname string, w http.ResponseWriter, r *http.Request)

func GCFGenerateQRCode added in v0.0.9

func GCFGenerateQRCode(w http.ResponseWriter, r *http.Request)

func GenerateQRCode added in v0.0.7

func GenerateQRCode(data Parkiran) (string, error)
func GenerateQRCodeWithLogo(DataParkir backparkir.Parkiran) error

func InsertDataToMongoDB added in v0.0.7

func InsertDataToMongoDB(formData Parkkiran) error

func SaveQRScanResult added in v0.1.0

func SaveQRScanResult(qrData QRScan) error

func SendEmail added in v0.1.0

func SendEmail(to, subject, body string) error

Types

type Notifikasi added in v0.0.9

type Notifikasi struct {
	Status  int      `json:"status"`
	Message string   `json:"message"`
	Data    Parkiran `json:"data"`
}

type Parkiran added in v0.1.0

type Parkiran struct {
	ID             primitive.ObjectID `json:"_id" bson:"_id,omitempty" `
	ParkiranId     int                `json:"parkiranid" bson:"parkiranid"`
	Nama           string             `json:"nama" bson:"nama"`
	NPM            string             `json:"npm" bson:"npm"`
	Prodi          string             `json:"prodi" bson:"prodi"`
	NamaKendaraan  string             `json:"namakendaraan" bson:"namakendaraan"`
	NomorKendaraan string             `bson:"nomorkendaraan,omitempty" json:"nomorkendaraan,omitempty"`
	JenisKendaraan string             `json:"jeniskendaraan,omitempty" bson:"jeniskendaraan,omitempty"`
}

type Payload added in v0.0.6

type Payload struct {
	Email   string `bson:"email,omitempty" json:"email,omitempty"`
	Message string `bson:"message,omitempty" json:"message,omitempty"`
}

type QRScan added in v0.1.0

type QRScan struct {
	QR      string `json:"qr"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

type Time added in v0.0.9

type Time struct {
	Message     string `json:"message,omitempty" bson:"message,omitempty"`
	WaktuMasuk  string `json:"waktumasuk,omitempty" bson:"waktumasuk,omitempty"`
	WaktuKeluar string `json:"waktukeluar,omitempty" bson:"waktukeluar,omitempty"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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