19 lines
321 B
Go
19 lines
321 B
Go
|
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,
|
||
|
}
|
||
|
}
|