diags/handlers/handlers.go

19 lines
317 B
Go
Raw Permalink Normal View History

2024-11-20 13:31:46 +00:00
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,
}
}