silvermobi/handler/handler.go

22 lines
505 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.ServicesHandler
Storage storage.Storage
}
func NewSilvermobiHandler(cfg *viper.Viper, services *services.ServicesHandler, storage storage.Storage) (*SilvermobiHandler, error) {
return &SilvermobiHandler{
Config: cfg,
Services: services,
Storage: storage,
}, nil
}