httpserver

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                         string        `json:"port"`
	ReadTimeoutMillisecond       time.Duration `json:"readTimeoutMillisecond"`       // 读取数据最大时间
	ReadHeaderTimeoutMillisecond time.Duration `json:"readHeaderTimeoutMillisecond"` // 读取请求头最大时间
	WriteTimeoutMillisecond      time.Duration `json:"writeTimeoutMillisecond"`      // 写响应最大时间
	IdleTimeoutMillisecond       time.Duration `json:"idleTimeoutMillisecond"`       // 空闲连接最大时间
	MaxHeaderBytes               int           `json:"maxHeaderBytes"`               // 最大请求头大小
	IsOpenConnStateTraceLog      bool          `json:"isOpenConnStateTraceLog"`      // 是否开启连接状态追踪日志
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(configPath string, handler http.Handler) *Manager

func (*Manager) Run

func (m *Manager) Run()

type Router

type Router interface {
	RegisterHandler(*Manager)
}

Jump to

Keyboard shortcuts

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