Documentation ¶
Index ¶
- Variables
- func InsertBank(db string, bank Bank) (InsertedID interface{})
- func InsertDiskon(db string, diskon Diskon) (InsertedID interface{})
- func InsertKategori(db string, kategori Kategori) (InsertedID interface{})
- func InsertKontak(db string, kontak Kontak) (InsertedID interface{})
- func InsertLapangan(db string, lapangan Lapangan) (InsertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Bank
- type Diskon
- type Kategori
- type Kontak
- type Lapangan
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertBank ¶
func InsertDiskon ¶
func InsertKategori ¶
func InsertKontak ¶
func InsertLapangan ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
type Bank ¶
type Bank struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Nama_Bank string `bson:"nama_bank" json:"nama_bank"` Atas_Nama string `bson:"atas_nama" json:"atas_nama"` }
func GetDataBank ¶ added in v0.0.5
type Diskon ¶
type Diskon struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Dikurang string `bson:"dikurang" json:"dikurang"` }
func GetDataDiskon ¶ added in v0.0.5
type Kategori ¶
type Kategori struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Nama string `bson:"nama" json:"nama"` Turnamen string `bson:"turnamen" json:"turnamen"` }
func GetDataKategori ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.