ckbackend

package module
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

ckbackend

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func InsertAbout

func InsertAbout(db string, about About) (insertedID interface{})

func InsertContacus

func InsertContacus(db string, contacus Contacus) (insertedID interface{})

func InsertDashboard

func InsertDashboard(db string, dashboard Dashboard) (insertedID interface{})

func InsertDosen

func InsertDosen(db string, dosen Dosen) (insertedID interface{})

func InsertMahasiswa

func InsertMahasiswa(db string, mahasiswa Mahasiswa) (insertedID interface{})

func InsertOneDoc

func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})

func MongoConnect

func MongoConnect(dbname string) (db *mongo.Database)

Types

type About

type About struct {
	Pertanyaan string `bson:"pertanyaan" json:"pertanyaan"`
	Jawaban    string `bson:"jawaban" json:"jawaban"`
}

func GetDataAbout added in v0.0.14

func GetDataAbout(stats string) (data []About)

type Contacus

type Contacus struct {
	Phone_number string `bson:"phone_number" json:"phone_number"`
	Email        string `bson:"email" json:"email"`
}

func GetDataContacus added in v0.0.14

func GetDataContacus(stats string) (data []Contacus)

type Dashboard

type Dashboard struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Username   string             `bson:"Username" json:"Username"`
	Email      string             `bson:"Email" json:"Email"`
	Location   string             `bson:"Location" json:"Location"`
	Orders     string             `bson:"Orders" json:"Orders"`
	Lastorders string             `bson:"Lastorders" json:"Lastorders"`
	Totalspent string             `bson:"Totalspent" json:"Totalspent"`
	Sks        string             `bson:"Sks" json:"Sks"`
}

func GetDataDashboard added in v0.0.14

func GetDataDashboard(stats string) (data []Dashboard)

type Dosen

type Dosen struct {
	Nama      string `bson:"nama" json:"nama"`
	Jabatan   string `bson:"Jabatan" json:"Jabatan"`
	Noted     string `bson:"Noted" json:"Noted"`
	Img_dosen string `bson:"img_dosen" json:"img_dosen"`
}

func GetDataDosen

func GetDataDosen(stats string) (data []Dosen)

type Mahasiswa

type Mahasiswa struct {
	Nama_mhs   string `bson:"Nama_mhs" json:"Nama_mhs"`
	Email_mhs  string `bson:"email_mhs" json:"email_mhs"`
	Gambar_mhs string `bson:"gambar_mhs" json:"gambar_mhs"`
}

func GetDataMahasiswa added in v0.0.14

func GetDataMahasiswa(stats string) (data []Mahasiswa)

Jump to

Keyboard shortcuts

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