From 87d772a7d708fec12f48cd8adc0dedff6e1025da Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 10:15:20 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- .../go.d.plugin/modules/phpdaemon/init.go | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/go/collectors/go.d.plugin/modules/phpdaemon/init.go (limited to 'src/go/collectors/go.d.plugin/modules/phpdaemon/init.go') diff --git a/src/go/collectors/go.d.plugin/modules/phpdaemon/init.go b/src/go/collectors/go.d.plugin/modules/phpdaemon/init.go deleted file mode 100644 index 0f05d01ee..000000000 --- a/src/go/collectors/go.d.plugin/modules/phpdaemon/init.go +++ /dev/null @@ -1,27 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -package phpdaemon - -import ( - "errors" - - "github.com/netdata/netdata/go/go.d.plugin/pkg/web" -) - -func (p *PHPDaemon) validateConfig() error { - if p.URL == "" { - return errors.New("url not set") - } - if _, err := web.NewHTTPRequest(p.Request); err != nil { - return err - } - return nil -} - -func (p *PHPDaemon) initClient() (*client, error) { - httpClient, err := web.NewHTTPClient(p.Client) - if err != nil { - return nil, err - } - return newAPIClient(httpClient, p.Request), nil -} -- cgit v1.2.3