Documentation ¶
Index ¶
- Variables
- func InsertAbout(db string, about About) (insertedID interface{})
- func InsertDataKaryawan(db, nama string, status string, jabatan string, gaji string) (InsertedID interface{})
- func InsertHonor(db string, honor Honor) (insertedID interface{})
- func InsertJob(db string, job Job) (insertedID interface{})
- func InsertKaryawan(db string, karyawan Karyawan) (insertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertTeam(db string, team Team) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type About
- type Honor
- type Job
- type Karyawan
- type Team
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertAbout ¶
func InsertDataKaryawan ¶ added in v0.0.20
func InsertHonor ¶
func InsertKaryawan ¶
func InsertOneDoc ¶
func InsertTeam ¶
func MongoConnect ¶
Types ¶
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
type Job ¶
type Job struct {
Namajob string `bson:"namajob" json:"namajob"`
}
func GetDataJob ¶ added in v0.0.15
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
Click to show internal directories.
Click to hide internal directories.