Documentation ¶
Index ¶
- Variables
- func DeleteController(ctx iris.Context)
- func GetController(ctx iris.Context)
- func LoginHandler(ctx iris.Context)
- func PublishHandler(ctx iris.Context)
- func RawGostHandler(ctx iris.Context)
- func RegisterHandler(ctx iris.Context)
- func UserGostsController(ctx iris.Context)
- func UserOwnGostsController(ctx iris.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadUser is error message for bad user ErrBadUser = errors.New("Bad user. ") // ErrBadGost is error message for bad gost ErrBadGost = errors.New("Bad gost, maybe you push too many files or file is too big, or push empty files. ") // ErrGostNotFound is error message for gost not found ErrGostNotFound = errors.New("Gost not exists. ") // ErrNotYourOwn is error message for user try to delete others gost ErrNotYourOwn = errors.New("This gost is not owned to you. ") )
View Source
var ( // ErrPasswordError is password error message ErrPasswordError = errors.New("Password mismatch username.") )
View Source
var RegisterSuccess = "Register success, your username is %s. You can login later."
RegisterSuccess is message for register success
Functions ¶
func DeleteController ¶
DeleteController is handler for delete a gost
func GetController ¶
GetController is handler for get gost by id
func LoginHandler ¶
LoginHandler is http handler for login router
func PublishHandler ¶
PublishHandler is handler for create new gost
func RegisterHandler ¶
RegisterHandler is handler for register
func UserGostsController ¶
UserGostsController is handler show a user's own gosts, (public)
func UserOwnGostsController ¶
UserOwnGostsController is handler show user own gosts (private)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.