InsideServer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Addr         string
	Router       *BaseRouter.Router
	Son          bool
	Registry     bool
	RegistryAddr string
}

InsideServerBaseConfig 内嵌服务器基础配置结构

func ConfigInit

func ConfigInit() BaseConfig

ConfigInit 应用程序配置

type InsideServer

type InsideServer struct {
	Addr         string
	Req          *http.Request
	RespWriter   http.ResponseWriter
	Router       *BaseRouter.Router
	SessionOn    bool
	RegistryOn   bool
	RegistryAddr string
}

InsideServer 内嵌服务器结构体

func (*InsideServer) Config

func (is *InsideServer) Config(config BaseConfig)

InsideServer.Config 内嵌服务器配置

func (*InsideServer) Serve

func (is *InsideServer) Serve()

InsideServer.Serve 开启内嵌服务器

func (*InsideServer) ServeHTTP

func (is *InsideServer) ServeHTTP(responseWriter http.ResponseWriter, r *http.Request)

InsideServer.ServeHTTP 默认路由

Jump to

Keyboard shortcuts

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