protocol

package
v0.0.0-...-28af436 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 6 Imported by: 0

README

协议服务

协议服务配置(8080:HTTP)

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
}

封装一个自己的http server

func NewHttpServer

func NewHttpServer() *HttpServer

func (*HttpServer) Close

func (s *HttpServer) Close(ctx context.Context)

优雅关闭

func (*HttpServer) Run

func (s *HttpServer) Run() error

Jump to

Keyboard shortcuts

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