Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServ ¶
func NewHttpServ(port int, root_dir string, request_handler_fptr func(http.ResponseWriter, *http.Request)) *HttpServer
func NewHttpServTLS ¶
func NewHttpServTLS(port int, root_dir string, request_handler_fptr func(http.ResponseWriter, *http.Request), certFile string, keyFile string) *HttpServer
func (*HttpServer) GetPort ¶
func (t *HttpServer) GetPort() int
func (HttpServer) IsInitialized ¶
func (t HttpServer) IsInitialized() (bool, error)
func (*HttpServer) Shutdown ¶
func (t *HttpServer) Shutdown()
func (HttpServer) StartedForTLS ¶
func (t HttpServer) StartedForTLS() bool
Function doesn't guarantee server is running for tls but shows if server was started with NewHttpServTLS; it fallbacks to the default behavior of go's http tls procedure.
Click to show internal directories.
Click to hide internal directories.