Rethink how metricator will work, golangci-lint and gitlab ci configs.

This commit is contained in:
2020-11-29 03:22:39 +05:00
parent e679fecf6e
commit f915470c0b
20 changed files with 256 additions and 112 deletions

View File

@@ -40,6 +40,8 @@ func (h *HTTPServer) getRequestContext(_ net.Listener) context.Context {
// Initializes handler and HTTP server structure.
func (h *HTTPServer) initialize() {
h.handler = &handler{}
// We do not need to specify all possible parameters for HTTP server, so:
// nolint:exaustivestruct
h.server = &http.Server{
// ToDo: make it all configurable.
Addr: ":34421",