Documentation
¶
Index ¶
- func Encode(username, privateKey string) (string, error)
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetUsername(r *http.Request) string
- func GetuserByAdmin(PASETOPUBLICKEYENV string, r *http.Request) string
- func InsertUserApp(PASETOPUBLICKEYENV string, r *http.Request) string
- func InsertUserStore(r *http.Request) string
- func LogIn(PASETOPRIVATEKEYENV string, r *http.Request) string
- func SqlConn() (*sql.DB, error)
- type Payload
- type Response
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey() (privateKey, publicKey string)
func InsertUserStore ¶
Types ¶
type Payload ¶
type User ¶
type User struct {
Name string `bson:"name,omitempty" json:"name,omitempty"`
Username string `bson:"username,omitempty" json:"username,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
PhoneNumber string `bson:"phone_number,omitempty" json:"phone_number,omitempty"`
License string `bson:"license,omitempty" json:"license,omitempty"`
Password string `bson:"password,omitempty" json:"password,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.