Initial commit

This commit is contained in:
NortPerm
2023-10-30 15:21:12 +03:00
committed by GitHub
commit 13e2575b4e
149 changed files with 3961 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package internalhttp
import (
"net/http"
)
func loggingMiddleware(next http.Handler) http.Handler { //nolint:unused
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// TODO
})
}

View File

@@ -0,0 +1,31 @@
package internalhttp
import (
"context"
)
type Server struct { // TODO
}
type Logger interface { // TODO
}
type Application interface { // TODO
}
func NewServer(logger Logger, app Application) *Server {
return &Server{}
}
func (s *Server) Start(ctx context.Context) error {
// TODO
<-ctx.Done()
return nil
}
func (s *Server) Stop(ctx context.Context) error {
// TODO
return nil
}
// TODO