Documentation
¶
Overview ¶
Package socket provides primitives for running HTTP over unix domain sockets transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUniquePath ¶
GetUniquePath returns path that has nothing on it.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(path string, h http.Handler) *HTTPServer
func (*HTTPServer) Start ¶
func (s *HTTPServer) Start() error
Start starts a HTTP server that listens on the configured socket path.
func (*HTTPServer) Stop ¶
func (s *HTTPServer) Stop() error
Stop releases all resources allocated by the server. It also takes care of removing the socket file from the file system.
Click to show internal directories.
Click to hide internal directories.