Files
silvermobi/handler/handler.go
Salim Amine Bou Aram ef2768c431 refacto
2024-10-31 20:32:54 +01:00

23 lines
504 B
Go

package handler
import (
"git.coopgo.io/coopgo-apps/silvermobi/services"
"git.coopgo.io/coopgo-apps/silvermobi/storage"
"github.com/spf13/viper"
)
type SilverMobiHandler struct {
Config *viper.Viper
Services *services.ServiceHandler
Storage storage.Storage
}
func NewSilverMobiHandler(cfg *viper.Viper, services *services.ServiceHandler,
storage storage.Storage) (*SilverMobiHandler, error) {
return &SilverMobiHandler{
Config: cfg,
Services: services,
Storage: storage,
}, nil
}