gosaw

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InsertDafdir

func InsertDafdir(db *mongo.Database, keterangan string, kehadiran string) (InsertedID interface{})

func InsertDafpel

func InsertDafpel(db *mongo.Database, keterangan string, poin string) (InsertedID interface{})

func InsertNilai

func InsertNilai(db *mongo.Database, matpel string, kkm string, grade string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPembayaran

func InsertPembayaran(db *mongo.Database, keterangan string, status string) (InsertedID interface{})

func MongoConnect

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

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

func GetDataDafdir(ket string) (data []Dafdir)

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

func GetDataDafpel(ket string) (data []Dafpel)

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

func GetDataNilai(matpel string) (data []Nilai)

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)

Jump to

Keyboard shortcuts

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