server

package
v0.0.0-...-10d5974 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 3 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
	HandlerMap map[string]http.HandlerFunc
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(listenAddr string) *HTTPServer

func (*HTTPServer) RegisterHandler

func (s *HTTPServer) RegisterHandler(path string, handler http.HandlerFunc)

func (*HTTPServer) SetListenAddr

func (s *HTTPServer) SetListenAddr(listenAddr string)

func (*HTTPServer) StartHttpServer

func (s *HTTPServer) StartHttpServer() error

func (*HTTPServer) Stop

func (s *HTTPServer) Stop() error

Jump to

Keyboard shortcuts

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