webserver

package
v0.0.0-...-96d2d13 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

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 ShowIndex

func ShowIndex(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

type HostSwitch map[string]http.Handler

一个新类型,用于存储域名对应的路由

func (HostSwitch) ServeHTTP

func (hs HostSwitch) ServeHTTP(w http.ResponseWriter, r *http.Request)

实现http.Handler接口,进行不同域名的路由分发

Jump to

Keyboard shortcuts

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