all to pkg

This commit is contained in:
Cody Lee 2022-12-02 20:48:01 -05:00
parent 06594f67eb
commit 1900e69d7a
No known key found for this signature in database
34 changed files with 24 additions and 24 deletions

View File

@ -6,7 +6,7 @@ import (
"os"
"time"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
// Load input plugins!
_ "github.com/unpoller/unpoller/pkg/inputunifi"
// Load output plugins!

View File

@ -8,7 +8,7 @@ import (
"github.com/DataDog/datadog-go/statsd"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
"golift.io/cnfg"
)

View File

@ -5,7 +5,7 @@ import (
"time"
"github.com/DataDog/datadog-go/statsd"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
// Report is a will report the current collection run data.

View File

@ -13,8 +13,8 @@ import (
influx "github.com/influxdata/influxdb1-client/v2"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/poller"
"github.com/unpoller/unpoller/pkg/webserver"
"golift.io/cnfg"
)

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/webserver"
)
// Logf logs a message.

View File

@ -6,7 +6,7 @@ import (
"time"
influx "github.com/influxdata/influxdb1-client/v2"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
// Report is returned to the calling procedure after everything is processed.

View File

@ -5,7 +5,7 @@ import (
"time"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/webserver"
)
/* Event collection. Events are also sent to the webserver for display. */

View File

@ -8,7 +8,7 @@ import (
"time"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
var ErrScrapeFilterMatchFailed = fmt.Errorf("scrape filter match failed, and filter is not http URL")

View File

@ -10,7 +10,7 @@ import (
"time"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
// PluginName is the name of this input plugin.

View File

@ -7,8 +7,8 @@ import (
"strings"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/poller"
"github.com/unpoller/unpoller/pkg/webserver"
)
var (

View File

@ -6,7 +6,7 @@ import (
"time"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/webserver"
)
/* This code reformats our data to be displayed on the built-in web interface. */

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/webserver"
)
// Logf logs a message.

View File

@ -7,8 +7,8 @@ import (
"strings"
"time"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/poller"
"github.com/unpoller/unpoller/pkg/webserver"
"golift.io/cnfg"
)

View File

@ -6,7 +6,7 @@ import (
"time"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
// LogStream contains a stream of logs (like a log file).

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
"golift.io/cnfg"
)

View File

@ -13,8 +13,8 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
promver "github.com/prometheus/common/version"
"github.com/unpoller/unifi"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/poller"
"github.com/unpoller/unpoller/pkg/webserver"
"golift.io/version"
)

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/unpoller/unpoller/core/webserver"
"github.com/unpoller/unpoller/pkg/webserver"
)
// Logf logs a message.

View File

@ -5,7 +5,7 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
// This file contains the report interface.

View File

@ -11,7 +11,7 @@ import (
"time"
"github.com/gorilla/mux"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
"golang.org/x/crypto/bcrypt"
)

View File

@ -7,7 +7,7 @@ import (
"net/http"
"time"
"github.com/unpoller/unpoller/core/poller"
"github.com/unpoller/unpoller/pkg/poller"
)
/* This file has the methods that help the content-methods. Shared helpers. */