Documentation
¶
Overview ¶
*
- @Author: Noaghzil
- @Date: 2022-12-22 08:15:22
- @Last Modified by: Noaghzil
- @Last Modified time: 2023-01-18 11:22:43
*
- @Author: Noaghzil
- @Date: 2022-12-26 08:01:41
- @Last Modified by: Noaghzil
- @Last Modified time: 2022-12-26 08:01:52
*
- @Author: Noaghzil
- @Date: 2022-12-23 00:20:18
- @Last Modified by: Noaghzil
- @Last Modified time: 2023-01-18 11:23:20
*
- @Author: Noaghzil
- @Date: 2022-12-25 22:43:37
- @Last Modified by: Noaghzil
- @Last Modified time: 2022-12-26 07:56:04
Index ¶
- func GorillaServer()
- func Httprouter()
- func NetHttpServer()
- func ShowAdminDashboard(w http.ResponseWriter, r *http.Request)
- func ShowIndex(w http.ResponseWriter, r *http.Request)
- func ToolIndex(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func UserInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type HostSwitch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GorillaServer ¶
func GorillaServer()
func Httprouter ¶
func Httprouter()
func NetHttpServer ¶
func NetHttpServer()
func ShowAdminDashboard ¶
func ShowAdminDashboard(w http.ResponseWriter, r *http.Request)
func ToolIndex ¶
func ToolIndex(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func UserInfo ¶
func UserInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Types ¶
type HostSwitch ¶
一个新类型,用于存储域名对应的路由
func (HostSwitch) ServeHTTP ¶
func (hs HostSwitch) ServeHTTP(w http.ResponseWriter, r *http.Request)
实现http.Handler接口,进行不同域名的路由分发
Click to show internal directories.
Click to hide internal directories.