Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthRedisClient *redis.Client
AuthRedisClient is redis client storing invalid auth information
View Source
var DomainNameRedisClient *redis.Client
DomainNameRedisClient is redis client storing used domain name
View Source
var MysqlEngine *xorm.Engine
MysqlEngine is mysql engine
Functions ¶
func CreateUserHandler ¶
func CreateUserHandler(w http.ResponseWriter, r *http.Request) error
CreateUserHandler handles user sign up
func GetUserHomeStructureHandler ¶
func GetUserHomeStructureHandler(w http.ResponseWriter, r *http.Request) error
GetUserHomeStructureHandler returns home structure
func GetUserMessageHandler ¶
func GetUserMessageHandler(w http.ResponseWriter, r *http.Request) error
GetUserMessageHandler handle user message query
Types ¶
type UserController ¶
type UserController struct { model.User Email string `json:"email"` Username string `json:"username"` Password string `json:"password"` }
UserController is controller for user
type UserMessage ¶
type UserMessage struct {
Email string `json:"email"`
}
UserMessage stores user message
Click to show internal directories.
Click to hide internal directories.