Upgrade go.mod to featurebase/v3

This commit is contained in:
Ben Johnson 2022-01-21 09:41:17 -07:00
parent 4e578b8a65
commit 9ebf0e2119
259 changed files with 695 additions and 697 deletions

View file

@ -1,7 +1,6 @@
.PHONY: build check-clean clean build-lattice cover cover-viz default docker docker-build docker-test docker-tag-push generate generate-protoc generate-pql generate-statik gometalinter install install-build-deps install-golangci-lint install-gometalinter install-protoc install-protoc-gen-gofast install-peg install-statik release release-build test testv testv-race testvsub testvsub-race test-txstore-rbf
CLONE_URL=github.com/pilosa/pilosa
MOD_VERSION=v2
VERSION := $(shell git describe --tags 2> /dev/null || echo unknown)
VARIANT = Molecula
GO=go
@ -13,7 +12,7 @@ BRANCH_ID := $(BRANCH)-$(GOOS)-$(GOARCH)
BUILD_TIME := $(shell date -u +%FT%T%z)
SHARD_WIDTH = 20
COMMIT := $(shell git describe --exact-match >/dev/null 2>&1 || git rev-parse --short HEAD)
LDFLAGS="-X github.com/molecula/featurebase/v2.Version=$(VERSION) -X github.com/molecula/featurebase/v2.BuildTime=$(BUILD_TIME) -X github.com/molecula/featurebase/v2.Variant=$(VARIANT) -X github.com/molecula/featurebase/v2.Commit=$(COMMIT) -X github.com/molecula/featurebase/v2.TrialDeadline=$(TRIAL_DEADLINE)"
LDFLAGS="-X github.com/molecula/featurebase/v3.Version=$(VERSION) -X github.com/molecula/featurebase/v3.BuildTime=$(BUILD_TIME) -X github.com/molecula/featurebase/v3.Variant=$(VARIANT) -X github.com/molecula/featurebase/v3.Commit=$(COMMIT) -X github.com/molecula/featurebase/v3.TrialDeadline=$(TRIAL_DEADLINE)"
GO_VERSION=1.16.10
DOCKER_BUILD= # set to 1 to use `docker-build` instead of `build` when creating a release
BUILD_TAGS += shardwidth$(SHARD_WIDTH)
@ -170,11 +169,11 @@ build-lattice:
# `go generate` protocol buffers
generate-protoc: require-protoc require-protoc-gen-gofast
$(GO) generate github.com/molecula/featurebase/v2/pb
$(GO) generate github.com/molecula/featurebase/v3/pb
# `go generate` statik assets (lattice UI)
generate-statik: build-lattice require-statik
$(GO) generate github.com/molecula/featurebase/v2/statik
$(GO) generate github.com/molecula/featurebase/v3/statik
# `go generate` statik assets (lattice UI) in Docker
generate-statik-docker: build-lattice
@ -182,7 +181,7 @@ generate-statik-docker: build-lattice
# `go generate` stringers
generate-stringer:
$(GO) generate github.com/molecula/featurebase/v2
$(GO) generate github.com/molecula/featurebase/v3
generate-pql: require-peg
cd pql && peg -inline pql.peg && cd ..
@ -193,7 +192,7 @@ generate-proto-grpc: require-protoc require-protoc-gen-go
# TODO: Modify above commands and remove the below mv if possible.
# See https://go-review.googlesource.com/c/protobuf/+/219298/ for info on --go-opt
# I couldn't get it to work during development - Cody
cp -r proto/github.com/molecula/featurebase/v2/proto/ proto/
cp -r proto/github.com/molecula/featurebase/v3/proto/ proto/
rm -rf proto/github.com
# `go generate` all needed packages

18
api.go
View file

@ -21,16 +21,16 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/ingest"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/ingest"
"github.com/molecula/featurebase/v3/rbf"
//"github.com/molecula/featurebase/v2/pg"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/stats"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v2/tracing"
//"github.com/molecula/featurebase/v3/pg"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/stats"
"github.com/molecula/featurebase/v3/topology"
"github.com/molecula/featurebase/v3/tracing"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -6,8 +6,8 @@ import (
"crypto/tls"
"sync"
"github.com/molecula/featurebase/v2/logger"
pb "github.com/molecula/featurebase/v2/proto"
"github.com/molecula/featurebase/v3/logger"
pb "github.com/molecula/featurebase/v3/proto"
"github.com/pkg/errors"
"google.golang.org/grpc"
"google.golang.org/grpc/connectivity"

View file

@ -19,14 +19,14 @@ import (
"time"
"github.com/golang-jwt/jwt"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/authn"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/shardwidth"
"github.com/molecula/featurebase/v2/test"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/boltdb"
"github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/shardwidth"
"github.com/molecula/featurebase/v3/test"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
)
func TestAPI_Import(t *testing.T) {

View file

@ -2,7 +2,7 @@
package pilosa
import (
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3/testhook"
)
var NewAuditor func() testhook.Auditor = NewNopAuditor

View file

@ -5,7 +5,7 @@ import (
"fmt"
"reflect"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3/testhook"
)
// These audit hooks are desireable during testing, but not in

View file

@ -6,8 +6,8 @@ import (
"os"
"reflect"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/testhook"
)
// AuditLeaksOn is a global switch to turn on resource

View file

@ -15,7 +15,7 @@ import (
"time"
"github.com/golang-jwt/jwt"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
"github.com/pkg/errors"
"golang.org/x/oauth2"
)

View file

@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
)
func TestAuth(t *testing.T) {

View file

@ -19,7 +19,7 @@ import (
"io"
"io/ioutil"
"github.com/molecula/featurebase/v2/authn"
"github.com/molecula/featurebase/v3/authn"
"gopkg.in/yaml.v2"
)

View file

@ -20,8 +20,8 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/authn"
"github.com/molecula/featurebase/v2/authz"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/authz"
)
func TestAuth_ReadPermissionsFile(t *testing.T) {

View file

@ -12,7 +12,7 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v3"
"github.com/pkg/errors"
bolt "go.etcd.io/bbolt"

View file

@ -10,10 +10,10 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/boltdb"
"github.com/molecula/featurebase/v3/testhook"
"github.com/molecula/featurebase/v3/topology"
)
//var vv = pilosa.VV

View file

@ -4,7 +4,7 @@ package pilosa
import (
"fmt"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v3/topology"
"github.com/pkg/errors"
)

2
bsi.go
View file

@ -4,7 +4,7 @@ package pilosa
import (
"math/bits"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v3/roaring"
)
// bsiData contains BSI-structured data.

View file

@ -10,9 +10,9 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/lru"
pb "github.com/molecula/featurebase/v2/proto"
"github.com/molecula/featurebase/v2/stats"
"github.com/molecula/featurebase/v3/lru"
pb "github.com/molecula/featurebase/v3/proto"
"github.com/molecula/featurebase/v3/stats"
"github.com/pkg/errors"
)

View file

@ -5,7 +5,7 @@ import (
"reflect"
"testing"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v3"
)
// Ensure cache stays constrained to its configured size.

View file

@ -2,9 +2,9 @@
package pilosa
import (
"github.com/molecula/featurebase/v2/roaring"
txkey "github.com/molecula/featurebase/v2/short_txkey"
"github.com/molecula/featurebase/v2/vprint"
"github.com/molecula/featurebase/v3/roaring"
txkey "github.com/molecula/featurebase/v3/short_txkey"
"github.com/molecula/featurebase/v3/vprint"
)
// catcher is useful to report error locations with a

View file

@ -6,9 +6,9 @@ import (
"io"
"time"
"github.com/molecula/featurebase/v2/ingest"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v3/ingest"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/topology"
)
// Bit represents the intersection of a row and a column. It can be specified by
@ -36,7 +36,7 @@ type FieldValue struct {
// While I understand that putting the entire Client behind an interface might require this many methods,
// I don't want to let it go unquestioned.
// Another note from Travis: I think we eventually want to unify `InternalClient` with
// the `github.com/molecula/featurebase/v2/client` client.
// the `github.com/molecula/featurebase/v3/client` client.
// Doing that may obviate the need to refactor this.
type InternalClient interface {
InternalQueryClient

View file

@ -6,9 +6,9 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/client/egpool"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v3/client/egpool"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/roaring"
"github.com/pkg/errors"
)

View file

@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v3/test"
"github.com/pkg/errors"
)

View file

@ -20,13 +20,13 @@ import (
"time"
"github.com/golang/protobuf/proto" //nolint:staticcheck
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/logger"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/stats"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/logger"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/pb"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/stats"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"

View file

@ -7,10 +7,10 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2/disco"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/shardwidth"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v3/disco"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/shardwidth"
"github.com/molecula/featurebase/v3/test"
"github.com/stretchr/testify/require"
"golang.org/x/sync/errgroup"
)

View file

@ -10,7 +10,7 @@ import (
"reflect"
"testing"
pnet "github.com/molecula/featurebase/v2/net"
pnet "github.com/molecula/featurebase/v3/net"
)
func TestQueryWithError(t *testing.T) {

View file

@ -7,7 +7,7 @@ package client
import (
"sync"
pnet "github.com/molecula/featurebase/v2/net"
pnet "github.com/molecula/featurebase/v3/net"
)
// Cluster contains hosts in a Pilosa cluster.

View file

@ -7,7 +7,7 @@ package client
import (
"testing"
pnet "github.com/molecula/featurebase/v2/net"
pnet "github.com/molecula/featurebase/v3/net"
)
func TestNewClusterWithHost(t *testing.T) {

View file

@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v3/client"
)
// Format is the format of the data in the CSV file.

View file

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v2/client/csv"
"github.com/molecula/featurebase/v3/client"
"github.com/molecula/featurebase/v3/client/csv"
)
func TestCSVIterate(t *testing.T) {

View file

@ -8,9 +8,9 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v2/client/csv"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/client"
"github.com/molecula/featurebase/v3/client/csv"
)
func TestCSVColumnIterator(t *testing.T) {

View file

@ -11,7 +11,7 @@ Usage:
import (
"fmt"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v3/client"
)
// Create a Client instance

View file

@ -5,7 +5,7 @@ import (
"errors"
"testing"
"github.com/molecula/featurebase/v2/client/egpool"
"github.com/molecula/featurebase/v3/client/egpool"
)
func TestEGPool(t *testing.T) {

View file

@ -3,7 +3,7 @@ package client
import (
"time"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
"github.com/pkg/errors"
)

View file

@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/test"
)
func TestIngestAPIBatchAdd(t *testing.T) {

View file

@ -13,7 +13,7 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v3/pql"
"github.com/pkg/errors"
)

View file

@ -13,8 +13,8 @@ import (
"testing"
"time"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/pql"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/pkg/errors"
)

View file

@ -7,7 +7,7 @@ package client_test
import (
"testing"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v3/client"
)
func TestColumnShard(t *testing.T) {

View file

@ -8,7 +8,7 @@ import (
"encoding/json"
"fmt"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v3/pb"
)
// QueryResponse types.

View file

@ -11,7 +11,7 @@ import (
"reflect"
"testing"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v3/pb"
)
func TestNewRowResultFromInternal(t *testing.T) {

View file

@ -7,7 +7,7 @@ package client
import (
"sync"
pnet "github.com/molecula/featurebase/v2/net"
pnet "github.com/molecula/featurebase/v3/net"
)
type shardNodes struct {

View file

@ -10,12 +10,12 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/ingest"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v2/tracing"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/ingest"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/topology"
"github.com/molecula/featurebase/v3/tracing"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -12,11 +12,11 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/topology"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/testhook"
"github.com/molecula/featurebase/v3/topology"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
)
// Ensure that fragCombos creates the correct fragment mapping.

2
cmd.go
View file

@ -4,7 +4,7 @@ package pilosa
import (
"io"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
)
// CmdIO holds standard unix inputs and outputs.

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -12,10 +12,10 @@ import (
"io/ioutil"
gohttp "net/http"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/vprint"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/http"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/vprint"
"os"
"strconv"

View file

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
)
var checker *ctl.CheckCommand

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -7,8 +7,8 @@ import (
"github.com/spf13/cobra"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3/ctl"
"github.com/molecula/featurebase/v3/server"
)
var conf *ctl.ConfigCommand

View file

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
)
var inspector *ctl.InspectCommand

View file

@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
)
var Exporter *ctl.ExportCommand

View file

@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/cmd"
"github.com/molecula/featurebase/v3/cmd"
)
func TestExportHelp(t *testing.T) {

View file

@ -9,7 +9,7 @@ import (
"os"
"strings"
"github.com/molecula/featurebase/v2/sql2"
"github.com/molecula/featurebase/v3/sql2"
)
func main() {

View file

@ -8,7 +8,7 @@ import (
"fmt"
"os"
"github.com/molecula/featurebase/v2/cmd"
"github.com/molecula/featurebase/v3/cmd"
)
func main() {

View file

@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
)
var generateConf *ctl.GenerateConfigCommand

View file

@ -5,8 +5,8 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -5,10 +5,10 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v2/cmd"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v3/cmd"
"github.com/molecula/featurebase/v3/pql"
)
func TestImportHelp(t *testing.T) {

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -16,8 +16,8 @@ import (
"strings"
"time"
"github.com/molecula/featurebase/v2"
phttp "github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v3"
phttp "github.com/molecula/featurebase/v3/http"
"golang.org/x/sync/errgroup"
)

View file

@ -16,12 +16,12 @@ import (
"time"
"github.com/gogo/protobuf/proto"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/vprint"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/client"
"github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/pb"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/vprint"
"github.com/pkg/errors"
vegeta "github.com/tsenart/vegeta/v12/lib"
)

View file

@ -7,12 +7,12 @@ import (
"strconv"
"testing"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/test"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/boltdb"
"github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/test"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
)
func Test_RandomQuery(t *testing.T) {

View file

@ -8,7 +8,7 @@ import (
"io"
"strconv"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -12,11 +12,11 @@ import (
"strings"
"syscall"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v2/rbf/cfg"
"github.com/molecula/featurebase/v2/roaring"
txkey "github.com/molecula/featurebase/v2/short_txkey"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/rbf"
"github.com/molecula/featurebase/v3/rbf/cfg"
"github.com/molecula/featurebase/v3/roaring"
txkey "github.com/molecula/featurebase/v3/short_txkey"
"github.com/spf13/cobra"
)

View file

@ -6,7 +6,7 @@ import (
"io"
"strings"
pilosa "github.com/molecula/featurebase/v2"
pilosa "github.com/molecula/featurebase/v3"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"

View file

@ -12,8 +12,8 @@ import (
"time"
"github.com/molecula/featurebase/v2/cmd"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3/cmd"
"github.com/molecula/featurebase/v3/testhook"
"github.com/spf13/cobra"
)

View file

@ -4,10 +4,10 @@ package cmd
import (
"io"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/tracing"
"github.com/molecula/featurebase/v2/tracing/opentracing"
"github.com/molecula/featurebase/v3/ctl"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/tracing"
"github.com/molecula/featurebase/v3/tracing/opentracing"
"github.com/pkg/errors"
"github.com/spf13/cobra"
jaegercfg "github.com/uber/jaeger-client-go/config"

View file

@ -7,10 +7,10 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2/cmd"
_ "github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/toml"
"github.com/molecula/featurebase/v3/cmd"
_ "github.com/molecula/featurebase/v3/test"
"github.com/molecula/featurebase/v3/testhook"
"github.com/molecula/featurebase/v3/toml"
"github.com/pkg/errors"
)

View file

@ -17,10 +17,10 @@ import (
"strings"
"time"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/vprint"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/http"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/vprint"
)
// slurp: slurp is a load-tester for importing bulk data.

View file

@ -12,10 +12,10 @@ import (
"path/filepath"
"time"
pilosa "github.com/molecula/featurebase/v2"
fb_http "github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/topology"
pilosa "github.com/molecula/featurebase/v3"
fb_http "github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/topology"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -9,8 +9,8 @@ import (
"path/filepath"
"syscall"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/roaring"
"github.com/pkg/errors"
)

View file

@ -10,7 +10,7 @@ import (
"context"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3/testhook"
)
func TestCheckCommand_RunCacheFile(t *testing.T) {

View file

@ -8,8 +8,8 @@ import (
"io"
"github.com/cespare/xxhash"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/server"
)
// ChkSumCommand represents a command for backing up a Pilosa node.

View file

@ -7,9 +7,9 @@ import (
gohttp "net/http"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/server"
"github.com/pkg/errors"
"github.com/spf13/pflag"
)

View file

@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/server"
toml "github.com/pelletier/go-toml"
)

View file

@ -9,7 +9,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3/server"
)
func TestConfigCommand_Run(t *testing.T) {

View file

@ -6,8 +6,8 @@ import (
"io"
"os"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/server"
"github.com/pkg/errors"
)

View file

@ -8,8 +8,8 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/test"
)
func TestExportCommand_Validation(t *testing.T) {

View file

@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/server"
"github.com/pelletier/go-toml"
"github.com/pkg/errors"
)

View file

@ -11,9 +11,9 @@ import (
"strconv"
"time"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/server"
"github.com/pkg/errors"
)

View file

@ -14,9 +14,9 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/test"
"github.com/molecula/featurebase/v3/testhook"
)
func TestImportCommand_Validation(t *testing.T) {

View file

@ -19,9 +19,9 @@ import (
"unsafe"
"github.com/gogo/protobuf/proto"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pb"
"github.com/molecula/featurebase/v3/roaring"
"github.com/pkg/errors"
)

View file

@ -9,7 +9,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3/testhook"
)
func TestInspectCommand_Run(t *testing.T) {

View file

@ -7,7 +7,7 @@ import (
"io"
"github.com/gorilla/securecookie"
pilosa "github.com/molecula/featurebase/v2"
pilosa "github.com/molecula/featurebase/v3"
)
// Keygen represents a command for generating a cryptographic key.

View file

@ -9,7 +9,7 @@ import (
_ "net/http/pprof"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v3/testhook"
)
func TestMain(m *testing.M) {

View file

@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/rbf"
)
// RBFCheckCommand represents a command for running a consistency check on RBF.

View file

@ -8,8 +8,8 @@ import (
"io"
"strings"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/rbf"
)
// RBFDumpCommand represents a command for dumping raw data for an RBF page.

View file

@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/rbf"
)
// RBFPageCommand represents a command for printing data for a single RBF page.

View file

@ -6,9 +6,9 @@ import (
"fmt"
"io"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v2/txkey"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/rbf"
"github.com/molecula/featurebase/v3/txkey"
)
// RBFPagesCommand represents a command for printing a list of RBF page metadata.

View file

@ -17,11 +17,11 @@ import (
"github.com/hashicorp/go-retryablehttp"
pilosa "github.com/molecula/featurebase/v2"
fb_http "github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/topology"
pilosa "github.com/molecula/featurebase/v3"
fb_http "github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/topology"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/storage"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/storage"
"github.com/spf13/cobra"
)

View file

@ -5,7 +5,7 @@ import (
"bytes"
"testing"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v3/server"
"github.com/spf13/cobra"
)

View file

@ -9,7 +9,7 @@ import (
"time"
"github.com/felixge/fgprof"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
"github.com/pkg/errors"
)

View file

@ -10,12 +10,12 @@ import (
"strings"
"sync"
rbfcfg "github.com/molecula/featurebase/v2/rbf/cfg"
txkey "github.com/molecula/featurebase/v2/short_txkey"
"github.com/molecula/featurebase/v2/storage"
rbfcfg "github.com/molecula/featurebase/v3/rbf/cfg"
txkey "github.com/molecula/featurebase/v3/short_txkey"
"github.com/molecula/featurebase/v3/storage"
"github.com/pkg/errors"
"github.com/molecula/featurebase/v2/vprint"
"github.com/molecula/featurebase/v3/vprint"
)
var _ = sort.Sort

View file

@ -8,11 +8,11 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v2/shardwidth"
txkey "github.com/molecula/featurebase/v2/short_txkey"
"github.com/molecula/featurebase/v2/testhook"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v3/rbf"
"github.com/molecula/featurebase/v3/shardwidth"
txkey "github.com/molecula/featurebase/v3/short_txkey"
"github.com/molecula/featurebase/v3/testhook"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
)
// Shard per db evaluation

View file

@ -7,12 +7,12 @@ import (
"reflect"
"testing"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/test"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/boltdb"
"github.com/molecula/featurebase/v3/http"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/test"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
)
func TestAPI_SimplerOneNode_ImportColumnKey(t *testing.T) {

View file

@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/test"
"github.com/stretchr/testify/require"
)

View file

@ -11,7 +11,7 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
"github.com/pkg/errors"
)

View file

@ -10,7 +10,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v3/logger"
)
func TestDiagnosticsClient(t *testing.T) {

View file

@ -6,14 +6,14 @@ import (
"time"
"github.com/gogo/protobuf/proto"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/ingest"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/topology"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/ingest"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/pb"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/topology"
"github.com/pkg/errors"
)

View file

@ -6,9 +6,9 @@ import (
"reflect"
"testing"
pilosa "github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/ingest"
"github.com/molecula/featurebase/v2/pb"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/ingest"
"github.com/molecula/featurebase/v3/pb"
)
func testOneRoundTrip(t *testing.T, s pilosa.Serializer, obj pilosa.Message, expectedMarshalErr error, expectedUnmarshalErr error, expectedMismatchErr error) {

View file

@ -14,9 +14,9 @@ import (
"sync"
"time"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/topology"
"github.com/pkg/errors"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/clientv3/clientv3util"

Some files were not shown because too many files have changed in this diff Show more