rafi1214005

package module
v0.0.0-...-dc9fa1f Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func EnrolMatakuliah

func EnrolMatakuliah(mn string, mk string, ml string) (InsertedID interface{})

func InsertOneDoc

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

func MongoConnect

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

func RegisterMhs

func RegisterMhs(nm string, em string, nps string) (InsertedID interface{})

Types

type Mahasiswa

type Mahasiswa struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama     string             `bson:"nama,omitempty" json:"nama,omitempty"`
	Email    string             `bson:"phone_number,omitempty" json:"phone_number,omitempty"`
	Password string             `bson:"password,omitempty" json:"password,omitempty"`
}

type Matakuliah

type Matakuliah struct {
	Nama   string `bson:"namamatakuliah,omitempty" json:"namamatakuliah,omitempty"`
	Kode   string `bson:"kode,omitempty" json:"kode,omitempty"`
	Lokasi string `bson:"lokasi,omitempty" json:"lokasi,omitempty"`
	Enrol  string `bson:"enrol,omitempty" json:"enrol,omitempty"`
}

Jump to

Keyboard shortcuts

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