Skip to content

Commit

Permalink
ref: moving auxiliary data structures to the package root
Browse files Browse the repository at this point in the history
  • Loading branch information
robotomize committed Jun 11, 2021
1 parent 254cb2c commit 195ddb4
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion internal/alert/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/go-sod/sod/internal/httputil"
"github.com/go-sod/sod/internal/logging"
metricModel "github.com/go-sod/sod/internal/metric/model"
"github.com/go-sod/sod/pkg/container/rworker"
"github.com/go-sod/sod/pkg/rworker"
)

type ProvideFn = func(chan<- error) (Manager, error)
Expand Down
2 changes: 1 addition & 1 deletion internal/dispatcher/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
metricDb "github.com/go-sod/sod/internal/metric/database"
"github.com/go-sod/sod/internal/metric/model"
"github.com/go-sod/sod/internal/predictor"
"github.com/go-sod/sod/pkg/container/iqueue"
"github.com/go-sod/sod/pkg/iqueue"
)

// Contract for returning the Manager instance
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/knn/avlnode/time_datapoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"

"github.com/go-sod/sod/internal/predictor"
"github.com/go-sod/sod/pkg/container/avltree"
"github.com/go-sod/sod/pkg/avltree"
)

type TimeNode struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/predictor/knn/brute/brute.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/go-sod/sod/internal/predictor"
"github.com/go-sod/sod/internal/predictor/knn/avlnode"
"github.com/go-sod/sod/pkg/container/avltree"
"github.com/go-sod/sod/pkg/container/pqueue"
"github.com/go-sod/sod/pkg/avltree"
"github.com/go-sod/sod/pkg/pqueue"
)

func WithMaxItems(n int) Option {
Expand Down
4 changes: 2 additions & 2 deletions internal/predictor/knn/gbkd/gbkd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/go-sod/sod/internal/predictor"
"github.com/go-sod/sod/internal/predictor/knn/avlnode"
"github.com/go-sod/sod/pkg/container/avltree"
"github.com/go-sod/sod/pkg/container/kdtree"
"github.com/go-sod/sod/pkg/avltree"
"github.com/go-sod/sod/pkg/kdtree"
)

func WithMaxItems(n int) Option {
Expand Down
2 changes: 1 addition & 1 deletion internal/scrape/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/go-sod/sod/internal/geom"
"github.com/go-sod/sod/internal/logging"
"github.com/go-sod/sod/internal/metric/model"
"github.com/go-sod/sod/pkg/container/rworker"
"github.com/go-sod/sod/pkg/rworker"
)

type response struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/container/kdtree/tree.go → pkg/kdtree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"math"
"sort"

"github.com/go-sod/sod/pkg/container/pqueue"
"github.com/go-sod/sod/pkg/pqueue"
)

type Point interface {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 195ddb4

Please sign in to comment.