server

package
v0.0.0-...-1fb9a13 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

func New

func New(port int) (*HttpServer, error)

New 创建一个新的 HTTP 服务器

func (*HttpServer) IPv4

func (hs *HttpServer) IPv4() string

IPv4 return local IPv4 address

func (*HttpServer) Port

func (hs *HttpServer) Port() int

func (*HttpServer) Shutdown

func (hs *HttpServer) Shutdown() error

func (*HttpServer) Startup

func (hs *HttpServer) Startup() error

Startup blocking goroutine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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