fleets/handlers/handlers.go

19 lines
321 B
Go
Raw Permalink Normal View History

2022-08-12 12:49:16 +00:00
package handlers
import (
"git.coopgo.io/coopgo-platform/fleets/storage"
"github.com/spf13/viper"
)
type FleetsHandler struct {
config *viper.Viper
storage storage.Storage
}
func NewHandler(cfg *viper.Viper, storage storage.Storage) FleetsHandler {
return FleetsHandler{
config: cfg,
storage: storage,
}
}