saw

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InsertDafdir

func InsertDafdir(keterangan string, kehadiran string) (InsertedID interface{})

func InsertDafpel

func InsertDafpel(keterangan string, poin string) (InsertedID interface{})

func InsertNilai

func InsertNilai(matpel string, kkm string, grade string) (InsertedID interface{})

func InsertOneDoc

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

func InsertPembayaran

func InsertPembayaran(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"`
}

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"`
}

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"`
}

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"`
}

Jump to

Keyboard shortcuts

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