silvermobi/handler/handler.go

23 lines
504 B
Go
Raw Permalink Normal View History

2023-08-08 10:28:43 +00:00
package handler
import (
"git.coopgo.io/coopgo-apps/silvermobi/services"
"git.coopgo.io/coopgo-apps/silvermobi/storage"
"github.com/spf13/viper"
)
2024-10-31 19:32:54 +00:00
type SilverMobiHandler struct {
2023-12-08 06:35:04 +00:00
Config *viper.Viper
2024-10-31 19:32:54 +00:00
Services *services.ServiceHandler
2023-12-08 06:35:04 +00:00
Storage storage.Storage
2023-08-08 10:28:43 +00:00
}
2024-10-31 19:32:54 +00:00
func NewSilverMobiHandler(cfg *viper.Viper, services *services.ServiceHandler,
storage storage.Storage) (*SilverMobiHandler, error) {
return &SilverMobiHandler{
2023-12-08 06:35:04 +00:00
Config: cfg,
Services: services,
Storage: storage,
2023-08-08 10:28:43 +00:00
}, nil
}