Skip to content

Commit

Permalink
change package name to have no dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaBub committed Jun 30, 2021
1 parent c3fb4bb commit c2f92db
Show file tree
Hide file tree
Showing 85 changed files with 110 additions and 124 deletions.
2 changes: 1 addition & 1 deletion agency/agency.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"context"
"time"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// Agency provides API implemented by the ArangoDB agency.
Expand Down
4 changes: 2 additions & 2 deletions agency/agency_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"sync"
"time"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/http"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/http"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion agency/agency_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sync"
"time"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion agency/agency_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"strings"
"time"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion agency/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"net/http"
"strings"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion agency/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"sync"
"time"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion agency/lock_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package agency
import (
"errors"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion agency/operation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package agency_test
import (
"testing"

"github.com/arangodb/go-driver/agency"
"github.com/michabub/go-driver/agency"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion agency/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package agency
import (
"fmt"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
)

// TransactionOptions defines options how transaction should behave.
Expand Down
2 changes: 1 addition & 1 deletion client_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"path"
"time"

"github.com/arangodb/go-driver/util"
"github.com/michabub/go-driver/util"
)

// NewClient creates a new Client based on the given config setting.
Expand Down
2 changes: 1 addition & 1 deletion cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sync"
"time"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"reflect"
"strconv"

"github.com/arangodb/go-driver/util"
"github.com/michabub/go-driver/util"
)

// ContextKey is an internal type used for holding values in a `context.Context`
Expand Down
4 changes: 2 additions & 2 deletions example_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"fmt"
"log"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/http"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/http"
)

func ExampleNewClient() {
Expand Down
2 changes: 1 addition & 1 deletion example_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package driver_test
import (
"context"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

func ExampleWithRevision(collection driver.Collection) {
Expand Down
4 changes: 2 additions & 2 deletions example_create_document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"fmt"
"log"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/http"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/http"
)

type Book struct {
Expand Down
4 changes: 2 additions & 2 deletions example_create_documents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
"log"
"strings"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/http"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/http"
)

type User struct {
Expand Down
2 changes: 1 addition & 1 deletion http/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"sync"
"sync/atomic"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// ErrAuthenticationNotChanged is returned when authentication is not changed.
Expand Down
2 changes: 1 addition & 1 deletion http/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package http
import (
"testing"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions http/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import (
"sync"
"time"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/cluster"
"github.com/arangodb/go-driver/util"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/cluster"
"github.com/michabub/go-driver/util"
velocypack "github.com/arangodb/go-velocypack"
)

Expand Down
2 changes: 1 addition & 1 deletion http/mergeObject.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package http
import (
"encoding/json"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// mergeObject is a helper used to merge 2 objects into JSON.
Expand Down
2 changes: 1 addition & 1 deletion http/request_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"strconv"
"strings"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// httpRequest implements driver.Request using standard golang http requests.
Expand Down
2 changes: 1 addition & 1 deletion http/request_vpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"fmt"
"reflect"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
velocypack "github.com/arangodb/go-velocypack"
)

Expand Down
2 changes: 1 addition & 1 deletion http/response_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"reflect"
"strings"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// httpJSONResponse implements driver.Response for standard golang JSON encoded http responses.
Expand Down
2 changes: 1 addition & 1 deletion http/response_json_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"encoding/json"
"fmt"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// httpJSONResponseElement implements driver.Response for an entry of an array response.
Expand Down
2 changes: 1 addition & 1 deletion http/response_vpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"fmt"
"net/http"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
velocypack "github.com/arangodb/go-velocypack"
)

Expand Down
2 changes: 1 addition & 1 deletion http/response_vpack_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package http
import (
"fmt"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
velocypack "github.com/arangodb/go-velocypack"
)

Expand Down
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"testing"
"time"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/http"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/http"
)

// TestMain creates a simple connection and waits for the server to be ready.
Expand Down
4 changes: 2 additions & 2 deletions test/agency_lock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"testing"
"time"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/agency"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/agency"
)

// TestAgencyLock tests the agency.Lock interface.
Expand Down
10 changes: 5 additions & 5 deletions test/agency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
"testing"
"time"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/agency"
httpdriver "github.com/arangodb/go-driver/http"
"github.com/arangodb/go-driver/jwt"
"github.com/arangodb/go-driver/util"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/agency"
httpdriver "github.com/michabub/go-driver/http"
"github.com/michabub/go-driver/jwt"
"github.com/michabub/go-driver/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion test/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"testing"
"time"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"

errors "github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion test/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"context"
"net/http"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
)

type driverErrorCheckFunc func(err error) (bool, error)
Expand Down
12 changes: 6 additions & 6 deletions test/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ import (
"testing"
"time"

"github.com/arangodb/go-driver/util/connection/wrappers"
"github.com/michabub/go-driver/util/connection/wrappers"

"github.com/rs/zerolog"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

_ "net/http/pprof"

driver "github.com/arangodb/go-driver"
"github.com/arangodb/go-driver/http"
"github.com/arangodb/go-driver/jwt"
"github.com/arangodb/go-driver/vst"
"github.com/arangodb/go-driver/vst/protocol"
driver "github.com/michabub/go-driver"
"github.com/michabub/go-driver/http"
"github.com/michabub/go-driver/jwt"
"github.com/michabub/go-driver/vst"
"github.com/michabub/go-driver/vst/protocol"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion test/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// TestClusterHealth tests the Cluster.Health method.
Expand Down
2 changes: 1 addition & 1 deletion test/collection_schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"net/http"
"testing"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion test/concurrency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sync"
"testing"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// TestConcurrentCreateSmallDocuments make a lot of concurrent CreateDocument calls.
Expand Down
2 changes: 1 addition & 1 deletion test/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"context"
"testing"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// TestContextParentNil calls all WithXyz context functions with a nil parent context.
Expand Down
2 changes: 1 addition & 1 deletion test/database_collection_defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/dchest/uniuri"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion test/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/dchest/uniuri"
"github.com/stretchr/testify/require"

"github.com/arangodb/go-driver"
"github.com/michabub/go-driver"
)

// databaseName is helper to create database name in non-colliding way
Expand Down
2 changes: 1 addition & 1 deletion test/document_remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"reflect"
"testing"

driver "github.com/arangodb/go-driver"
driver "github.com/michabub/go-driver"
)

// TestReplaceDocument creates a document, remove it and then checks the removal has succeeded.
Expand Down
Loading

0 comments on commit c2f92db

Please sign in to comment.