Documentation ¶
Index ¶
- Variables
- func GetAllDisposisi(db *mongo.Database, col string) (disposisi []model.Disposisi)
- func GetAllPenerima(db *mongo.Database, col string) (penerima []model.Penerima)
- func GetAllPengirim(db *mongo.Database, col string) (pengirim []model.Pengirim)
- func GetAllStatus(db *mongo.Database, col string) (status []model.Status)
- func GetAllSurat(db *mongo.Database, col string) (surat []model.Surat)
- func GetDisposisiFromTglDisposisi(tgl_disposisi int, db *mongo.Database, col string) (sm model.Disposisi)
- func GetPenerimaFromNamaPenerima(nama_penerima string, db *mongo.Database, col string) (sm model.Penerima)
- func GetPengirimFromNamaPengirim(nama_pengirim string, db *mongo.Database, col string) (sm model.Pengirim)
- func GetStatusFromIdStatus(id_status int, db *mongo.Database, col string) (sm model.Status)
- func GetSuratFromNoSurat(No_surat int, db *mongo.Database, col string) (sm model.Surat)
- func InsertDisposisi(db *mongo.Database, col string, kode_disposisi int, tgl_disposisi string, ...) (InsertedID interface{})
- func InsertKodePos(db *mongo.Database, col string, kode_daerah int, nama_daerah string) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPenerima(db *mongo.Database, col string, nama_penerima string, alamat string, ...) (InsertedID interface{})
- func InsertPengirim(db *mongo.Database, col string, nama_pengirim string, alamat string, ...) (InsertedID interface{})
- func InsertStatus(db *mongo.Database, col string, id_status int, keterangan string) (InsertedID interface{})
- func InsertSurat(db *mongo.Database, col string, no_surat int, status_surat model.Status, ...) (InsertedID interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "Surat_db", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllDisposisi ¶
func GetAllPenerima ¶
func GetAllPengirim ¶
func GetStatusFromIdStatus ¶
func GetSuratFromNoSurat ¶
func InsertDisposisi ¶
func InsertKodePos ¶
func InsertOneDoc ¶
func InsertPenerima ¶
func InsertPengirim ¶
func InsertStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.