controller

package
v0.0.0-...-3e9a8c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2019 License: MIT Imports: 12 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL