Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIHandler ¶
APIHandler api转发 @Summary API Handler @Accept json @Produce json @Param resbody body defs.APIBody true "a api body" @Success 200 {html} html "userhome.html" @Failure 400 {string} json "{"code":400,"msg":"","data":""}" @Router /api [post]
func HomeHandler ¶
HomeHandler 登陆界面 @Summary sign in home @Accept json @Produce json @Param username cookie string true "username" @Param session cookie string true "session" @Success 200 {html} html "home.html" @Router / [post, get]
func ProxyUploadHandler ¶
ProxyUploadHandler proxy转发 @Summary Proxy Handler @Router /upload/{vid-id} [post]
func ProxyVideoHandler ¶
ProxyVideoHandler proxy转发 @Summary Proxy Handler @Router /upload/{vid-id} [get]
func ReverseProxy ¶
func ReverseProxy() gin.HandlerFunc
func UserHomeHandler ¶
UserHomeHandler 用户页面 @Summary user home @Accept json @Produce json @Param username cookie string true "username" @Param session cookie string true "session" @Success 200 {html} html "userhome.html" @Router /userhome [post, get]
Types ¶
This section is empty.