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
Click to show internal directories.
Click to hide internal directories.