backend

package module
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 7 Imported by: 0

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 InsertDataKaryawan added in v0.0.20

func InsertDataKaryawan(db, nama string, status string, jabatan string, gaji string) (InsertedID interface{})

func InsertHonor

func InsertHonor(db string, honor Honor) (insertedID interface{})

func InsertJob

func InsertJob(db string, job Job) (insertedID interface{})

func InsertKaryawan

func InsertKaryawan(db string, karyawan Karyawan) (insertedID interface{})

func InsertOneDoc

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

func InsertTeam

func InsertTeam(db string, team Team) (insertedID interface{})

func MongoConnect

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

Types

type About

type About struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Isi_satu string             `bson:"isi_satu,omitempty" json:"isi_satu,omitempty"`
	Isi_dua  string             `bson:"isi_dua,omitempty" json:"isi_dua,omitempty"`
	Image    string             `bson:"image,omitempty" json:"image,omitempty"`
}

type Honor

type Honor struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama    string             `bson:"nama" json:"nama"`
	Status  string             `bson:"status" json:"status"`
	Jabatan string             `bson:"jabatan" json:"jabatan"`
	Gaji    string             `bson:"gaji" json:"gaji"`
}

func GetDataHonor added in v0.0.15

func GetDataHonor(stats string) (data []Honor)

type Job

type Job struct {
	Namajob string `bson:"namajob" json:"namajob"`
}

func GetDataJob added in v0.0.15

func GetDataJob(stats string) (data []Job)

type Karyawan

type Karyawan struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama    string             `bson:"nama" json:"nama"`
	Status  string             `bson:"status" json:"status"`
	Jabatan string             `bson:"jabatan" json:"jabatan"`
	Gaji    string             `bson:"gaji" json:"gaji"`
}

func GetDataKaryawan added in v0.0.15

func GetDataKaryawan(stats string) (data []Karyawan)

type Team

type Team struct {
	ID        primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
	Nama      string             `bson:"nama" json:"nama"`
	Deskripsi string             `bson:"deskripsi" json:"deskripsi"`
}

func GetDataTeam added in v0.0.15

func GetDataTeam(stats string) (data []Team)

Jump to

Keyboard shortcuts

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