Documentation ¶
Index ¶
- func CodeQr(dataJSON string, dbName, collectionName string, client *mongo.Client) error
- func ConnectDB() (*mongo.Database, error)
- func CreateProfile(db *mongo.Database, profile Profile) error
- func DeleteDataProfile(MongoConn *mongo.Database, colname string, ID string) (*mongo.DeleteResult, error)
- func DeleteProfile(db *mongo.Database, id string) error
- func GCFDeleteDataProfile(Mongostring, dbname, colname string, r *http.Request) string
- func GCFPostDataProf(Mongostring, dbname, colname string, r *http.Request) string
- func GCFUpdateProfile(Mongostring, dbname, colname string, r *http.Request) string
- func GCHandlerFunc(Mongostring, dbname, colname string) (string, error)
- func GenerateCodeQRLogo(dataJSON string, dbName, collectionName string, client *mongo.Client) error
- func GenerateCodeQr(dataJSON string, dbName, collectionName string, client *mongo.Client) error
- func GenerateQRCodeString(text string) (string, error)
- func GetConnectionMongo(MongoString, dbname string) (*mongo.Database, error)
- func InsertDataProfile(MongoConn *mongo.Database, colname string, coordinate []float64, ...) (interface{}, error)
- func JSONToQRCodeImage(jsonData []byte) (image.Image, error)
- func ReturnStringStruct(req *Credents) string
- func UpdateDataProfile(MongoConn *mongo.Database, ...) error
- func UpdateProfile(db *mongo.Database, id string, profile Profile) error
- type CodeQR
- type Credential
- type Credents
- type Prodi
- type Profile
- type ProfileRepository
- type RequestProfile
- type Response
- type ResponseBack
- type ResponseProfile
- type Time
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeQr ¶ added in v0.1.3
GenerateCodeQr menghasilkan kode QR dari data JSON dan menyimpannya di MongoDB CodeQr menghasilkan kode QR dari data JSON dan menyimpannya di MongoDB
func DeleteDataProfile ¶ added in v0.1.0
func GCFDeleteDataProfile ¶ added in v0.1.0
func GCFPostDataProf ¶ added in v0.1.0
func GCFUpdateProfile ¶ added in v0.1.0
func GCHandlerFunc ¶ added in v0.1.0
func GenerateCodeQRLogo ¶ added in v0.0.9
GenerateCodeQRLogo generates a QR code with a logo and saves it to MongoDB
func GenerateCodeQr ¶ added in v0.0.9
func GenerateQRCodeString ¶ added in v0.0.9
GenerateQRCodeString generates a QR code from a string and encodes it as a URL-safe string
func GetConnectionMongo ¶ added in v0.1.0
func InsertDataProfile ¶ added in v0.1.0
func JSONToQRCodeImage ¶ added in v0.1.0
Fungsi untuk mengonversi data JSON menjadi gambar QR code
func ReturnStringStruct ¶ added in v0.1.0
func UpdateDataProfile ¶ added in v0.1.0
Types ¶
type CodeQR ¶ added in v0.0.9
type CodeQR struct {
Data Profile `json:"data,omitempty" bson:"data,omitempty"`
}
type Credential ¶
type Profile ¶
type Profile struct { ID string `json:"id" bson:"_id,omitempty"` NamaLengkap string `json:"nama,omitempty" bson:"nama,omitempty"` NPM string `json:"npm,omitempty" bson:"npm,omitempty"` Prodi string `json:"prodi,omitempty" bson:"prodi,omitempty"` NamaKendaraan string `json:"namakendaraan,omitempty" bson:"namakendaraan,omitempty"` NomorKendaraan string `json:"nomorkendaraan,omitempty" bson:"nomorkendaraan,omitempty"` Time Time `json:"time,omitempty" bson:"time,omitempty"` }
func GetAllDataProfile ¶ added in v0.1.1
type ProfileRepository ¶
type ProfileRepository struct {
// contains filtered or unexported fields
}
type RequestProfile ¶
type ResponseBack ¶
type ResponseProfile ¶
Click to show internal directories.
Click to hide internal directories.