Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func HashPassword(password string) (string, error)
- func InsertUser(db *mongo.Database, collection string, userdata User) string
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- type Credential
- type Pemasukan
- type Pengeluaran
- type ResetPassword
- type Sumber
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GCFPostHandler ¶
func GCFReturnStruct ¶
func HashPassword ¶
func IsPasswordValid ¶
func SetConnection ¶
Types ¶
type Credential ¶
type Pemasukan ¶ added in v0.0.2
type Pemasukan struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Tanggal_masuk time.Time `bson:"tanggal_masuk,omitempty" json:"tanggal_masuk,omitempty"` Jumlah_masuk int `bson:"jumlah_masuk,omitempty" json:"jumlah_masuk,omitempty"` ID_sumber Sumber `bson:"id_sumber,omitempty" json:"id_sumber,omitempty"` Deskripsi string `bson:"deskripsi,omitempty" json:"deskripsi,omitempty"` ID_user User `bson:"id_user,omitempty" json:"id_user,omitempty"` }
type Pengeluaran ¶ added in v0.0.2
type Pengeluaran struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Tanggal_keluar time.Time `bson:"tanggal_keluar,omitempty" json:"tanggal_keluar,omitempty"` Jumlah_keluar int `bson:"jumlah_keluar,omitempty" json:"jumlah_keluar,omitempty"` ID_sumber Sumber `bson:"id_sumber,omitempty" json:"id_sumber,omitempty"` Deskripsi string `bson:"deskripsi,omitempty" json:"deskripsi,omitempty"` ID_user User `bson:"id_user,omitempty" json:"id_user,omitempty"` }
type ResetPassword ¶ added in v0.0.2
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Username string `json:"username" bson:"username"` Email string `bson:"email" json:"email"` Password string `bson:"password" json:"password"` MotherName string `bson:"mothername,omitempty" json:"mothername,omitempty"` }
Click to show internal directories.
Click to hide internal directories.