Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func HealthCheck(w http.ResponseWriter, _ *http.Request)
HealthCheck is the health check endpoint
Types ¶
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer is the web server
func NewWebServer ¶
func NewWebServer(authorsSvc *authors.AuthorService) (*WebServer, error)
NewWebServer creates a new web server
func (*WebServer) SetListenAddr ¶
SetListenAddr sets the listen address (format expected: ":3000") It won't restart the webserver if it's already running
Click to show internal directories.
Click to hide internal directories.