Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultServeHTTPCall ¶
func DefaultServeHTTPCall(srv *Server, w http.ResponseWriter, r *http.Request)
DefaultServeHTTPCall DefaultServeHTTPCall
func InvokeAndListen ¶
func InvokeAndListen(port string, istls bool, certFile string, keyFile string, srvHttPReqstCall ...ServeHTTPCall) (err error)
InvokeAndListen Invoke Server and Start Listening
Types ¶
type ServeHTTPCall ¶
type ServeHTTPCall = func(srv *Server, w http.ResponseWriter, r *http.Request)
ServeHTTPCall ServeHTTPCall
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server conveniance struct wrapping arround *http.Server
func NewServer ¶
func NewServer(port string, istls bool, certFile string, keyFile string, srvHttPReqstCall ...ServeHTTPCall) *Server
NewServer return *Server istls is tls listener certfile string - path to certificate file keyFile string - path to key file
Click to show internal directories.
Click to hide internal directories.