2023-04-17 08:48:09 +03:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
2023-04-25 13:06:02 +03:00
|
|
|
"github.com/sirupsen/logrus"
|
2023-04-17 08:48:09 +03:00
|
|
|
"gitstore.ru/tolikproh/sirius/internal/model"
|
|
|
|
)
|
|
|
|
|
2023-04-25 13:06:02 +03:00
|
|
|
type Handler struct {
|
|
|
|
log *logrus.Logger
|
|
|
|
cfg *model.Config
|
2023-04-17 08:48:09 +03:00
|
|
|
}
|
|
|
|
|
2023-04-25 13:06:02 +03:00
|
|
|
func New(cfg *model.Config, log *logrus.Logger) *Handler {
|
|
|
|
// HTTP Server
|
|
|
|
return &Handler{cfg: cfg, log: log}
|
2023-04-17 08:48:09 +03:00
|
|
|
}
|