painful upgrade for dumb go versioning

This commit is contained in:
Cody Lee
2024-12-31 14:44:10 -06:00
parent b9d668abee
commit b372198840
44 changed files with 63 additions and 73 deletions

View File

@@ -2,7 +2,7 @@ package promunifi
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
type uclient struct {

View File

@@ -14,7 +14,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
promver "github.com/prometheus/common/version"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
"github.com/unpoller/unpoller/pkg/poller"
"github.com/unpoller/unpoller/pkg/webserver"
"golift.io/version"

View File

@@ -2,7 +2,7 @@ package promunifi
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
type pdu struct {

View File

@@ -2,7 +2,7 @@ package promunifi
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
type site struct {
@@ -79,7 +79,7 @@ func (u *promUnifi) exportSiteDPI(r report, v any) {
s, ok := v.(*unifi.DPITable)
if !ok {
u.LogErrorf("invalid type given to SiteDPI: %T", v)
return
}

View File

@@ -2,7 +2,7 @@ package promunifi
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
type uap struct {

View File

@@ -2,7 +2,7 @@ package promunifi
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
// These are shared by all four device types: UDM, UAP, USG, USW.

View File

@@ -4,7 +4,7 @@ import (
"strings"
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
type usg struct {

View File

@@ -2,7 +2,7 @@ package promunifi
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
type usw struct {

View File

@@ -1,7 +1,7 @@
package promunifi
import (
"github.com/unpoller/unifi"
"github.com/unpoller/unifi/v5"
)
// exportUXG is a collection of stats from USG and USW. It has no unique stats.