Initial commit
This commit is contained in:
18
handlers/handlers.go
Normal file
18
handlers/handlers.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user