Documentation ¶
Index ¶
- func CleanPEMString(pem string) string
- func DeleteHistory(mongoenv *mongo.Database, collname string, datahistory models.History) interface{}
- func DeleteKantor(mongoenv *mongo.Database, collname string, datakantor models.Kantor) interface{}
- func DeletePelanggan(mongoenv *mongo.Database, collname string, datapelanggan models.Pelanggan) interface{}
- func DeleteTransaksi(mongoenv *mongo.Database, collname string, datatransaksi models.Transaksi) interface{}
- func DeleteUser(mongoenv *mongo.Database, collname string, datauser models.Users) interface{}
- func DummyHistoryGenerator(n int, mconn *mongo.Database) (string, error)
- func DummyKantorGenerator(mconn *mongo.Database) (string, error)
- func DummyPelangganGenerator(mconn *mongo.Database) (string, error)
- func DummyTransaksiGenerator(n int, mconn *mongo.Database) (string, error)
- func DummyUserGenerator(n int, mconn *mongo.Database) (string, error)
- func FindHistory(mongoenv *mongo.Database, collname string, datahistory models.History) models.History
- func FindKantor(mongoenv *mongo.Database, collname string, datakantor models.Kantor) models.Kantor
- func FindPelanggan(mongoenv *mongo.Database, collname string, datapelanggan models.Pelanggan) models.Pelanggan
- func FindTransaksi(mongoenv *mongo.Database, collname string, datatransaksi models.Transaksi) models.Transaksi
- func FindUser(mongoenv *mongo.Database, collname string, datauser models.Users) models.Users
- func GenerateRSAPem(privateFilename string, publicFilename string, bits int) error
- func GenerateSecretKeyEnv(privateKeyPath string) (string, string, error)
- func GetAllHistory(mongoenv *mongo.Database, collname string) ([]models.History, error)
- func GetAllHistoryWithPagination(mongoenv *mongo.Database, collname string, page, limit int) ([]models.History, models.DataCount, error)
- func GetAllKantor(mongoenv *mongo.Database, collname string) ([]models.Kantor, error)
- func GetAllKantorWithPagination(mongoenv *mongo.Database, collname string, page, limit int) ([]models.Kantor, models.DataCount, error)
- func GetAllPelanggan(mongoenv *mongo.Database, collname string) ([]models.Pelanggan, error)
- func GetAllPelangganByFilterWithPagination(mongoenv *mongo.Database, collname string, page, limit int, ...) ([]models.Pelanggan, models.DataCount, error)
- func GetAllPelangganWithPagination(mongoenv *mongo.Database, collname string, page, limit int) ([]models.Pelanggan, models.DataCount, error)
- func GetAllTransaksi(mongoenv *mongo.Database, collname, no_pend, kode_pelanggan string, ...) ([]models.Transaksi, error)
- func GetAllTransaksiWithPagination(mongoenv *mongo.Database, collname, kode_pelanggan, no_pend string, ...) ([]models.Transaksi, models.DataCount, error)
- func GetAllUser(mongoenv *mongo.Database, collname string) ([]models.Users, error)
- func GetAllUserWithPagination(mongoenv *mongo.Database, collname string, page, limit int) ([]models.Users, models.DataCount, error)
- func GetStatusDeliveredTransaksi(mongoenv *mongo.Database, collname string, startDate, endDate time.Time) ([]models.Transaksi, error)
- func GetUrlQuery(r *http.Request, queryKey string, defaultValue string) string
- func HistoryExists(mongoenv *mongo.Database, collname string, datahistory models.History) bool
- func InsertHistory(mongoenv *mongo.Database, collname string, datahistory models.History) (interface{}, error)
- func InsertKantor(mongoenv *mongo.Database, collname string, datakantor models.Kantor) (interface{}, error)
- func InsertPelanggan(mongoenv *mongo.Database, collname string, datapelanggan models.Pelanggan) (interface{}, error)
- func InsertTransaksi(mongoenv *mongo.Database, collname string, datatransaksi models.Transaksi) (interface{}, error)
- func InsertUser(mongoenv *mongo.Database, collname string, datauser models.Users) (interface{}, error)
- func IsPasswordValid(mongoenv *mongo.Database, collname string, datauser models.Users) bool
- func KantorExists(mongoenv *mongo.Database, collname string, datakantor models.Kantor) bool
- func ParseBody(w http.ResponseWriter, r *http.Request, v interface{})
- func ParseDate(dateStr string, isEndDate bool) (time.Time, error)
- func PelangganExists(mongoenv *mongo.Database, collname string, datapelanggan models.Pelanggan) bool
- func ReadPrivateKeyFromEnv(private string) (*rsa.PrivateKey, error)
- func ReadPrivateKeyFromFile(filename string) (*rsa.PrivateKey, error)
- func ReadPublicKeyFromEnv(oublic string) (*rsa.PublicKey, error)
- func ReadPublicKeyFromFile(filename string) (*rsa.PublicKey, error)
- func SetConnection() *mongo.Database
- func SignedJWT(mongoenv *mongo.Database, collname string, user models.Users) (string, error)
- func TransaksiExists(mongoenv *mongo.Database, collname string, datatransaksi models.Transaksi) bool
- func UpdateHistory(mongoenv *mongo.Database, collname string, datahistory models.History) interface{}
- func UpdateKantor(mongoenv *mongo.Database, collname string, datakantor models.Kantor) interface{}
- func UpdatePelanggan(mongoenv *mongo.Database, collname string, datapelanggan models.Pelanggan) interface{}
- func UpdateTransaksi(mongoenv *mongo.Database, collname string, datatransaksi models.Transaksi) interface{}
- func UpdateUser(mongoenv *mongo.Database, collname string, datauser models.Users) interface{}
- func UsernameExists(mongoenv *mongo.Database, collname string, datauser models.Users) bool
- func WriteJSONResponse(w http.ResponseWriter, status int, v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPEMString ¶ added in v1.0.5
func DeleteHistory ¶
func DeleteKantor ¶
func DeletePelanggan ¶
func DeleteTransaksi ¶
func DeleteUser ¶
func DummyHistoryGenerator ¶
func DummyTransaksiGenerator ¶
func FindHistory ¶
func FindKantor ¶
func FindPelanggan ¶
func FindTransaksi ¶
func GenerateRSAPem ¶ added in v1.0.5
func GenerateSecretKeyEnv ¶ added in v1.0.5
func GetAllHistory ¶
func GetAllKantor ¶
func GetAllPelanggan ¶
func GetAllTransaksi ¶
func GetAllUser ¶
func GetStatusDeliveredTransaksi ¶ added in v1.0.7
func GetUrlQuery ¶ added in v1.0.7
func HistoryExists ¶
func InsertHistory ¶
func InsertKantor ¶
func InsertPelanggan ¶
func InsertTransaksi ¶
func InsertUser ¶
func IsPasswordValid ¶
func KantorExists ¶
func ParseBody ¶ added in v1.0.7
func ParseBody(w http.ResponseWriter, r *http.Request, v interface{})
func PelangganExists ¶
func ReadPrivateKeyFromEnv ¶ added in v1.0.5
func ReadPrivateKeyFromEnv(private string) (*rsa.PrivateKey, error)
func ReadPrivateKeyFromFile ¶
func ReadPrivateKeyFromFile(filename string) (*rsa.PrivateKey, error)
ReadPrivateKeyFromFile reads an RSA private key from a file
func ReadPublicKeyFromEnv ¶ added in v1.0.5
func SetConnection ¶
func TransaksiExists ¶
func UpdateHistory ¶
func UpdateKantor ¶
func UpdatePelanggan ¶
func UpdateTransaksi ¶
func UpdateUser ¶
func UsernameExists ¶
func WriteJSONResponse ¶ added in v1.0.7
func WriteJSONResponse(w http.ResponseWriter, status int, v interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.