module

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoInfo = atdb.DBInfo{
	DBString: MongoString,
	DBName:   "Surat_db",
}
View Source
var MongoString string = os.Getenv("MONGOSTRING")

Functions

func GetAllDisposisi

func GetAllDisposisi(db *mongo.Database, col string) (disposisi []model.Disposisi)

func GetAllPenerima

func GetAllPenerima(db *mongo.Database, col string) (penerima []model.Penerima)

func GetAllPengirim

func GetAllPengirim(db *mongo.Database, col string) (pengirim []model.Pengirim)

func GetAllStatus

func GetAllStatus(db *mongo.Database, col string) (status []model.Status)

func GetAllSurat

func GetAllSurat(db *mongo.Database, col string) (surat []model.Surat)

func GetDisposisiFromTglDisposisi

func GetDisposisiFromTglDisposisi(tgl_disposisi int, db *mongo.Database, col string) (sm model.Disposisi)

func GetPenerimaFromNamaPenerima

func GetPenerimaFromNamaPenerima(nama_penerima string, db *mongo.Database, col string) (sm model.Penerima)

func GetPengirimFromNamaPengirim

func GetPengirimFromNamaPengirim(nama_pengirim string, db *mongo.Database, col string) (sm model.Pengirim)

func GetStatusFromIdStatus

func GetStatusFromIdStatus(id_status int, db *mongo.Database, col string) (sm model.Status)

func GetSuratFromNoSurat

func GetSuratFromNoSurat(No_surat int, db *mongo.Database, col string) (sm model.Surat)

func InsertDisposisi

func InsertDisposisi(db *mongo.Database, col string, kode_disposisi int, tgl_disposisi string, penerima_surat model.Penerima, stat_disposisi model.Status) (InsertedID interface{})

func InsertKodePos

func InsertKodePos(db *mongo.Database, col string, kode_daerah int, nama_daerah string) (InsertedID interface{})

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPenerima

func InsertPenerima(db *mongo.Database, col string, nama_penerima string, alamat string, tgl_terima string) (InsertedID interface{})

func InsertPengirim

func InsertPengirim(db *mongo.Database, col string, nama_pengirim string, alamat string, tgl_kirim string) (InsertedID interface{})

func InsertStatus

func InsertStatus(db *mongo.Database, col string, id_status int, keterangan string) (InsertedID interface{})

func InsertSurat

func InsertSurat(db *mongo.Database, col string, no_surat int, status_surat model.Status, Perihal string, id_pos model.Kodepos, pengirim_srt model.Pengirim, penerima_srt model.Penerima) (InsertedID interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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