go_http_server

package
v0.0.0-...-5d16d2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL