19 lines
317 B
Go
19 lines
317 B
Go
package handlers
|
|
|
|
import (
|
|
"git.coopgo.io/coopgo-platform/diags/storage"
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
type DiagsHandler struct {
|
|
config *viper.Viper
|
|
storage storage.Storage
|
|
}
|
|
|
|
func NewHandler(cfg *viper.Viper, storage storage.Storage) DiagsHandler {
|
|
return DiagsHandler{
|
|
config: cfg,
|
|
storage: storage,
|
|
}
|
|
}
|