server

package
v0.0.0-...-701726f Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: EPL-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer struct {
	Server *http.Server
	// contains filtered or unexported fields
}

func (*HttpServer) ListenAndServe

func (s *HttpServer) ListenAndServe() (err error)

ListenAndServe 监听端口并提供服务

func (*HttpServer) WaitForExitingSignal

func (s *HttpServer) WaitForExitingSignal(timeout time.Duration)

WaitForExitingSignal 监听退出信号,实现安全退出

Jump to

Keyboard shortcuts

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