cleanup
This commit is contained in:
		
							parent
							
								
									73be53bdbc
								
							
						
					
					
						commit
						7f91dff9d3
					
				
							
								
								
									
										1
									
								
								go.mod
								
								
								
								
							
							
						
						
									
										1
									
								
								go.mod
								
								
								
								
							|  | @ -4,7 +4,6 @@ go 1.19 | ||||||
| 
 | 
 | ||||||
| require ( | require ( | ||||||
| 	github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c | 	github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c | ||||||
| 	github.com/unpoller/promunifi v0.0.0-20210623101918-b986e661ac99 |  | ||||||
| 	golift.io/cnfg v0.2.1 | 	golift.io/cnfg v0.2.1 | ||||||
| 	golift.io/version v0.0.2 | 	golift.io/version v0.0.2 | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ package promunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type uclient struct { | type uclient struct { | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ import ( | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/prometheus/client_golang/prometheus/promhttp" | 	"github.com/prometheus/client_golang/prometheus/promhttp" | ||||||
| 	promver "github.com/prometheus/common/version" | 	promver "github.com/prometheus/common/version" | ||||||
| 	"github.com/unpoller/poller" | 	"github.com/unpoller/unpoller/core/poller" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| 	"github.com/unpoller/webserver" | 	"github.com/unpoller/unpoller/core/webserver" | ||||||
| 	"golift.io/version" | 	"golift.io/version" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ import ( | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/unpoller/webserver" | 	"github.com/unpoller/unpoller/core/webserver" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // Logf logs a message.
 | // Logf logs a message.
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ import ( | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/poller" | 	"github.com/unpoller/unpoller/core/poller" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // This file contains the report interface.
 | // This file contains the report interface.
 | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ package promunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type site struct { | type site struct { | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ package promunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type uap struct { | type uap struct { | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ package promunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // These are shared by all four device types: UDM, UAP, USG, USW.
 | // These are shared by all four device types: UDM, UAP, USG, USW.
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ import ( | ||||||
| 	"strings" | 	"strings" | ||||||
| 
 | 
 | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type usg struct { | type usg struct { | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ package promunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/prometheus/client_golang/prometheus" | 	"github.com/prometheus/client_golang/prometheus" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type usw struct { | type usw struct { | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package promunifi | package promunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // exportUXG is a collection of stats from USG and USW. It has no unique stats.
 | // exportUXG is a collection of stats from USG and USW. It has no unique stats.
 | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								main.go
								
								
								
								
							
							
						
						
									
										2
									
								
								main.go
								
								
								
								
							|  | @ -13,7 +13,7 @@ import ( | ||||||
| 	_ "github.com/unpoller/integrations/datadogunifi" | 	_ "github.com/unpoller/integrations/datadogunifi" | ||||||
| 	_ "github.com/unpoller/integrations/influxunifi" | 	_ "github.com/unpoller/integrations/influxunifi" | ||||||
| 	_ "github.com/unpoller/integrations/lokiunifi" | 	_ "github.com/unpoller/integrations/lokiunifi" | ||||||
| 	_ "github.com/unpoller/promunifi" | 	_ "github.com/unpoller/integrations/promunifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // Keep it simple.
 | // Keep it simple.
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue