ghttp

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentPid int

Functions

func Start

func Start(engine *gin.Engine, config ServerConfig) error

Types

type ServerConfig

type ServerConfig struct {
	ContextPath  string        `yaml:"contextPath" json:"contextPath"`
	Address      string        `yaml:"address" json:"address"`
	ReadTimeout  time.Duration `yaml:"readTimeout" json:"readTimeout"`
	WriteTimeout time.Duration `yaml:"writeTimeout" json:"writeTimeout"`
}

func (*ServerConfig) Check

func (s *ServerConfig) Check() error

Check 检查参数

Jump to

Keyboard shortcuts

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