use custom logger.

This commit is contained in:
Miroslav Šedivý
2021-09-17 00:58:50 +02:00
parent 5a7cdd31fe
commit 8d0fcbde70
15 changed files with 305 additions and 353 deletions

View File

@ -1,10 +1,6 @@
package types
import (
"github.com/go-chi/chi"
)
type ApiManager interface {
Route(r chi.Router)
AddRouter(path string, router func(chi.Router))
Route(r Router)
AddRouter(path string, router func(Router))
}

View File

@ -23,5 +23,5 @@ type WebSocketManager interface {
Start()
Shutdown() error
AddHandler(handler WebSocketHandler)
Upgrade(w http.ResponseWriter, r *http.Request, checkOrigin CheckOrigin)
Upgrade(w http.ResponseWriter, r *http.Request, checkOrigin CheckOrigin) error
}