Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GetConnectionMongo(MongoString, dbname string) *mongo.Database
- func HashPassword(password string) (string, error)
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertUser(db *mongo.Database, collection string, userdata User) string
- func InsertUserdata(MongoConn *mongo.Database, username, password string) (InsertedID interface{})
- func IsExist(Tokenstr, PublicKey string) bool
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func Login(Privatekey, MongoEnv, dbname, Colname string, r *http.Request) string
- func Register(Mongoenv, dbname string, r *http.Request) string
- func ReturnStringStruct(Data any) string
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- type Credential
- type RegisterStruct
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GCFPostHandler ¶
func GCFReturnStruct ¶
func GetConnectionMongo ¶ added in v0.0.2
func HashPassword ¶
func InsertOneDoc ¶ added in v0.0.3
func InsertUserdata ¶ added in v0.0.2
func IsPasswordValid ¶
func ReturnStringStruct ¶ added in v0.0.3
func SetConnection ¶
Types ¶
type Credential ¶
type RegisterStruct ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.