Documentation ¶
Index ¶
- Constants
- func CreateSession(userID uint64, w http.ResponseWriter, r *http.Request)
- func DestroySession(w http.ResponseWriter)
- func GenerateUID() uint64
- func GetSession(request *http.Request) (userID uint64)
- func UploadFiles(w http.ResponseWriter, r *http.Request, user uint64, category string) map[string]interface{}
- func ValidateEmail(email string) bool
- func ValidatePassword(password string) map[string]interface{}
- type GeneratedToken
- type Token
Constants ¶
View Source
const MAX_MEMORY = 1 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func CreateSession ¶
func CreateSession(userID uint64, w http.ResponseWriter, r *http.Request)
func DestroySession ¶
func DestroySession(w http.ResponseWriter)
func GenerateUID ¶
func GenerateUID() uint64
func GetSession ¶
func UploadFiles ¶
func ValidateEmail ¶
func ValidatePassword ¶
Types ¶
type GeneratedToken ¶
type GeneratedToken struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.