carpool-service/handler/handler.go

19 lines
383 B
Go
Raw Normal View History

2023-03-27 18:54:56 +00:00
package handler
import (
"git.coopgo.io/coopgo-platform/carpool-service/storage"
"github.com/spf13/viper"
)
type CarpoolServiceHandler struct {
Config *viper.Viper
Storage storage.Storage
}
func NewCarpoolServiceHandler(cfg *viper.Viper, storage storage.Storage) (*CarpoolServiceHandler, error) {
return &CarpoolServiceHandler{
Config: cfg,
Storage: storage,
}, nil
}