Documentation ¶
Index ¶
- Variables
- func InsertDafdir(db *mongo.Database, keterangan string, kehadiran string) (InsertedID interface{})
- func InsertDafpel(db *mongo.Database, keterangan string, poin string) (InsertedID interface{})
- func InsertNilai(db *mongo.Database, matpel string, kkm string, grade string) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPembayaran(db *mongo.Database, keterangan string, status string) (InsertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Dafdir
- type Dafpel
- type Nilai
- type Pembayaran
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertDafdir ¶
func InsertDafpel ¶
func InsertNilai ¶
func InsertOneDoc ¶
func InsertPembayaran ¶
func MongoConnect ¶
Types ¶
type Dafdir ¶
type Dafdir struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Datetime primitive.DateTime `bson:"datetime,omitempty" json:"datetime,omitempty"` Keterangan string `bson:"keterangan,omitempty" json:"keterangan,omitempty"` Kehadiran string `bson:"kehadiran,omitempty" json:"kehadiran,omitempty"` }
func GetDataDafdir ¶ added in v0.0.21
type Dafpel ¶
type Dafpel struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Datetime primitive.DateTime `bson:"datetime,omitempty" json:"datetime,omitempty"` Keterangan string `bson:"keterangan,omitempty" json:"keterangan,omitempty"` Poin string `bson:"poin,omitempty" json:"poin,omitempty"` }
func GetDataDafpel ¶ added in v0.0.21
type Nilai ¶
type Nilai struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Matpel string `bson:"matpel,omitempty" json:"matpel,omitempty"` Kkm string `bson:"kkm,omitempty" json:"kkm,omitempty"` Grade string `bson:"grade,omitempty" json:"grade,omitempty"` }
func GetDataNilai ¶ added in v0.0.21
type Pembayaran ¶
type Pembayaran struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Datetime primitive.DateTime `bson:"datetime,omitempty" json:"datetime,omitempty"` Keterangan string `bson:"keterangan,omitempty" json:"keterangan,omitempty"` Status string `bson:"status,omitempty" json:"status,omitempty"` }
func GetDataPembayaran ¶ added in v0.0.21
func GetDataPembayaran(stats string) (data []Pembayaran)
Click to show internal directories.
Click to hide internal directories.