sirius/internal/controller/handler/handler.go

17 lines
284 B
Go
Raw Normal View History

2023-04-17 08:48:09 +03:00
package handler
import (
"github.com/sirupsen/logrus"
2023-04-17 08:48:09 +03:00
"gitstore.ru/tolikproh/sirius/internal/model"
)
type Handler struct {
log *logrus.Logger
cfg *model.Config
2023-04-17 08:48:09 +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
}