lot of new functionalities
This commit is contained in:
21
servers/web/external/handler.go
vendored
Normal file
21
servers/web/external/handler.go
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package external
|
||||
|
||||
import (
|
||||
"git.coopgo.io/coopgo-apps/parcoursmob/core/application"
|
||||
cache "git.coopgo.io/coopgo-apps/parcoursmob/core/utils/storage"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
type Handler struct {
|
||||
cfg *viper.Viper
|
||||
applicationHandler *application.ApplicationHandler
|
||||
filestorage cache.FileStorage
|
||||
}
|
||||
|
||||
func NewHandler(cfg *viper.Viper, applicationHandler *application.ApplicationHandler, filestorage cache.FileStorage) *Handler {
|
||||
return &Handler{
|
||||
cfg: cfg,
|
||||
applicationHandler: applicationHandler,
|
||||
filestorage: filestorage,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user