Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIMEAppJSON = "application/json" MIMEAppJSONCharsetUTF8 = MIMEAppJSON + "; " + charsetUTF8 HeaderContentType = "Content-Type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
HttpServer is a simple http server struct to store the server configuration
func NewHttpServer ¶
func NewHttpServer(listenAddr string, l golog.MyLogger) *HttpServer
NewHttpServer creates a new HttpServer instance
func (*HttpServer) StartServer ¶
func (s *HttpServer) StartServer() error
StartServer will start the http server in his own goroutine
Click to show internal directories.
Click to hide internal directories.