You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrutiny/collector/pkg/collector/selftest.go

32 lines
536 B

package collector
import (
"github.com/sirupsen/logrus"
"net/url"
)
type SelfTestCollector struct {
BaseCollector
apiEndpoint *url.URL
logger *logrus.Entry
}
func CreateSelfTestCollector(logger *logrus.Entry, apiEndpoint string) (SelfTestCollector, error) {
apiEndpointUrl, err := url.Parse(apiEndpoint)
if err != nil {
return SelfTestCollector{}, err
}
stc := SelfTestCollector{
apiEndpoint: apiEndpointUrl,
logger: logger,
}
return stc, nil
}
func (sc *SelfTestCollector) Run() error {
return nil
}