Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GRPCServer ¶
type GRPCServer struct {
// contains filtered or unexported fields
}
func (*GRPCServer) Start ¶
func (g *GRPCServer) Start()
func (*GRPCServer) Stop ¶
func (g *GRPCServer) Stop()
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer wrapper of http.Server
func (*HTTPServer) Start ¶
func (h *HTTPServer) Start()
Start http server in goroutine write fatal msg by log if cant start server
type Logger ¶
type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) }
Logger interface for package things
type MultiServer ¶
type MultiServer struct {
// contains filtered or unexported fields
}
MultiServer is servers aggregator
func (*MultiServer) Stop ¶
func (ms *MultiServer) Stop()
Stop multiple servers and return concatenated error
type Serve ¶
type Serve struct {
// contains filtered or unexported fields
}
Serve wrapper for Listener interface
type Server ¶
type Server interface { Start() Stop() }
Server interface
func NewHTTPServer ¶
NewHTTPServer returns new http.Server wrapper
Click to show internal directories.
Click to hide internal directories.