Skip to content

Commit

Permalink
Change quesma module to valid public name (#1172)
Browse files Browse the repository at this point in the history
This PR updates module name from `quesma` (which is incorrect public
one) to `github.com/QuesmaOrg/quesma/quesma` and is prerequisite for
using quesma as a library
  • Loading branch information
pdelewski authored Jan 13, 2025
1 parent b08b3b2 commit e88a6bf
Show file tree
Hide file tree
Showing 271 changed files with 973 additions and 973 deletions.
6 changes: 3 additions & 3 deletions quesma/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ RUN --mount=type=cache,target="/root/.cache/go-build" \
--mount=type=cache,target=/go/pkg/mod \
go build \
-ldflags=" \
-X 'quesma/buildinfo.BuildHash=$QUESMA_BUILD_SHA' \
-X 'github.com/QuesmaOrg/quesma/quesma/buildinfo.BuildHash=$QUESMA_BUILD_SHA' \
-X 'buildinfo.BuildHash=$QUESMA_BUILD_SHA' \
-X 'quesma/buildinfo.Version=$QUESMA_VERSION' \
-X 'github.com/QuesmaOrg/quesma/quesma/buildinfo.Version=$QUESMA_VERSION' \
-X 'buildinfo.Version=$QUESMA_VERSION' \
-X 'quesma/buildinfo.BuildDate=$QUESMA_BUILD_DATE' \
-X 'github.com/QuesmaOrg/quesma/quesma/buildinfo.BuildDate=$QUESMA_BUILD_DATE' \
-X 'buildinfo.BuildDate=$QUESMA_BUILD_DATE' \
" \
-o bin
Expand Down
10 changes: 5 additions & 5 deletions quesma/ab_testing/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ package collector

import (
"context"
"quesma/ab_testing"
"quesma/buildinfo"
"quesma/ingest"
"quesma/logger"
"quesma/quesma/recovery"
"github.com/QuesmaOrg/quesma/quesma/ab_testing"
"github.com/QuesmaOrg/quesma/quesma/buildinfo"
"github.com/QuesmaOrg/quesma/quesma/ingest"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/recovery"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions quesma/ab_testing/collector/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package collector
import (
"crypto/sha1"
"fmt"
"github.com/QuesmaOrg/quesma/quesma/jsondiff"
"github.com/QuesmaOrg/quesma/quesma/quesma/types"
"github.com/goccy/go-json"
"quesma/jsondiff"
"quesma/quesma/types"
)

type diffTransformer struct {
Expand Down
6 changes: 3 additions & 3 deletions quesma/ab_testing/collector/fanout.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"bytes"
"context"
"fmt"
"github.com/QuesmaOrg/quesma/quesma/ingest"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/types"
"github.com/goccy/go-json"
"net/http"
"quesma/ingest"
"quesma/logger"
"quesma/quesma/types"
)

type elasticSearchFanout struct {
Expand Down
2 changes: 1 addition & 1 deletion quesma/ab_testing/collector/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package collector

import (
"fmt"
"github.com/QuesmaOrg/quesma/quesma/quesma/types"
"github.com/goccy/go-json"
"quesma/quesma/types"
"regexp"
)

Expand Down
12 changes: 6 additions & 6 deletions quesma/ab_testing/sender/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package sender

import (
"context"
"quesma/ab_testing"
"quesma/ab_testing/collector"
"quesma/ingest"
"quesma/logger"
"quesma/quesma/config"
"quesma/quesma/recovery"
"github.com/QuesmaOrg/quesma/quesma/ab_testing"
"github.com/QuesmaOrg/quesma/quesma/ab_testing/collector"
"github.com/QuesmaOrg/quesma/quesma/ingest"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/quesma/recovery"
"strings"
"time"
)
Expand Down
8 changes: 4 additions & 4 deletions quesma/ab_testing/sender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package sender

import (
"context"
"quesma/ab_testing"
"quesma/ab_testing/collector"
"quesma/logger"
"quesma/quesma/recovery"
"github.com/QuesmaOrg/quesma/quesma/ab_testing"
"github.com/QuesmaOrg/quesma/quesma/ab_testing/collector"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/recovery"
)

type senderControlMessage struct {
Expand Down
4 changes: 2 additions & 2 deletions quesma/backend_connectors/elasticsearch_backend_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"context"
"crypto/tls"
"fmt"
"github.com/QuesmaOrg/quesma/quesma/elasticsearch"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"net/http"
"quesma/elasticsearch"
"quesma/quesma/config"
quesma_api "quesma_v2/core"
"time"
)
Expand Down
16 changes: 8 additions & 8 deletions quesma/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ package clickhouse
import (
"context"
"fmt"
"quesma/end_user_errors"
"quesma/logger"
"quesma/model"
"quesma/persistence"
"quesma/quesma/config"
"quesma/quesma/recovery"
"quesma/schema"
"quesma/util"
"github.com/QuesmaOrg/quesma/quesma/end_user_errors"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/model"
"github.com/QuesmaOrg/quesma/quesma/persistence"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/quesma/recovery"
"github.com/QuesmaOrg/quesma/quesma/schema"
"github.com/QuesmaOrg/quesma/quesma/util"
quesma_api "quesma_v2/core"
"quesma_v2/core/diag"
"slices"
Expand Down
8 changes: 4 additions & 4 deletions quesma/clickhouse/clickhouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package clickhouse

import (
"context"
"quesma/quesma/config"
"quesma/quesma/types"
schema2 "quesma/schema"
"quesma/util"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/quesma/types"
schema2 "github.com/QuesmaOrg/quesma/quesma/schema"
"github.com/QuesmaOrg/quesma/quesma/util"
"strings"
"sync/atomic"
"testing"
Expand Down
8 changes: 4 additions & 4 deletions quesma/clickhouse/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"database/sql"
"fmt"
"github.com/ClickHouse/clickhouse-go/v2"
"github.com/QuesmaOrg/quesma/quesma/backend_connectors"
"github.com/QuesmaOrg/quesma/quesma/buildinfo"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"net"
"quesma/backend_connectors"
"quesma/buildinfo"
"quesma/logger"
"quesma/quesma/config"
quesma_api "quesma_v2/core"
"strings"
"time"
Expand Down
2 changes: 1 addition & 1 deletion quesma/clickhouse/dots.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package clickhouse

import (
"quesma/quesma/types"
"github.com/QuesmaOrg/quesma/quesma/quesma/types"
)

func transformFieldName(jsonInsert types.JSON, transformer func(field string) string) bool {
Expand Down
2 changes: 1 addition & 1 deletion quesma/clickhouse/dots_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package clickhouse

import (
"github.com/QuesmaOrg/quesma/quesma/quesma/types"
"github.com/stretchr/testify/assert"
"quesma/quesma/types"
"strings"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion quesma/clickhouse/parserCreateTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package clickhouse

import (
"quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/logger"
"strings"
"unicode"
)
Expand Down
8 changes: 4 additions & 4 deletions quesma/clickhouse/quesma_communicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"context"
"fmt"
"github.com/ClickHouse/clickhouse-go/v2"
"github.com/QuesmaOrg/quesma/quesma/end_user_errors"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/model"
"github.com/QuesmaOrg/quesma/quesma/quesma/recovery"
"math/rand"
"quesma/end_user_errors"
"quesma/logger"
"quesma/model"
"quesma/quesma/recovery"
quesma_api "quesma_v2/core"
tracing "quesma_v2/core/tracing"
"strconv"
Expand Down
4 changes: 2 additions & 2 deletions quesma/clickhouse/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package clickhouse

import (
"fmt"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/util"
"math"
"quesma/logger"
"quesma/util"
"reflect"
"strings"
"time"
Expand Down
8 changes: 4 additions & 4 deletions quesma/clickhouse/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package clickhouse
import (
"context"
"fmt"
"quesma/logger"
"quesma/model"
"quesma/quesma/config"
"quesma/util"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/model"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/util"
"strconv"
"strings"
)
Expand Down
14 changes: 7 additions & 7 deletions quesma/clickhouse/table_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
"context"
"errors"
"fmt"
"github.com/QuesmaOrg/quesma/quesma/common_table"
"github.com/QuesmaOrg/quesma/quesma/end_user_errors"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/persistence"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/schema"
"github.com/QuesmaOrg/quesma/quesma/util"
"github.com/goccy/go-json"
"quesma/common_table"
"quesma/end_user_errors"
"quesma/logger"
"quesma/persistence"
"quesma/quesma/config"
"quesma/schema"
"quesma/util"
quesma_api "quesma_v2/core"
"strings"
"sync/atomic"
Expand Down
2 changes: 1 addition & 1 deletion quesma/clickhouse/type_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package clickhouse

import (
"quesma/schema"
"github.com/QuesmaOrg/quesma/quesma/schema"
"strings"
)

Expand Down
4 changes: 2 additions & 2 deletions quesma/clickhouse/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package clickhouse
import (
"bytes"
"fmt"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/model"
"github.com/goccy/go-json"
"quesma/logger"
"quesma/model"
"strings"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion quesma/common_table/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package common_table

import (
"context"
"quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/logger"
quesma_api "quesma_v2/core"
)

Expand Down
2 changes: 1 addition & 1 deletion quesma/common_table/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Elastic-2.0
package common_table

import "quesma/quesma/types"
import "github.com/QuesmaOrg/quesma/quesma/quesma/types"

// IngestAddIndexNameTransformer is a transformer that adds an index name to the JSON
type IngestAddIndexNameTransformer struct {
Expand Down
2 changes: 1 addition & 1 deletion quesma/connectors/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package connectors

import (
"quesma/clickhouse"
"github.com/QuesmaOrg/quesma/quesma/clickhouse"
)

type ClickHouseConnector struct {
Expand Down
2 changes: 1 addition & 1 deletion quesma/connectors/clickhouse_os.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package connectors

import (
"quesma/clickhouse"
"github.com/QuesmaOrg/quesma/quesma/clickhouse"
)

type ClickHouseOSConnector struct {
Expand Down
10 changes: 5 additions & 5 deletions quesma/connectors/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ package connectors

import (
"fmt"
"quesma/clickhouse"
"quesma/licensing"
"quesma/logger"
"quesma/quesma/config"
"quesma/telemetry"
"github.com/QuesmaOrg/quesma/quesma/clickhouse"
"github.com/QuesmaOrg/quesma/quesma/licensing"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/telemetry"
quesma_api "quesma_v2/core"
)

Expand Down
2 changes: 1 addition & 1 deletion quesma/connectors/hydrolix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package connectors

import (
"quesma/clickhouse"
"github.com/QuesmaOrg/quesma/quesma/clickhouse"
)

type HydrolixConnector struct {
Expand Down
4 changes: 2 additions & 2 deletions quesma/elasticsearch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"context"
"crypto/tls"
"fmt"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"net/http"
"quesma/logger"
"quesma/quesma/config"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion quesma/elasticsearch/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package elasticsearch

import (
"context"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/stretchr/testify/assert"
"io"
"net/http"
"net/http/httptest"
"net/url"
"quesma/quesma/config"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion quesma/elasticsearch/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package elasticsearch

import (
"fmt"
"quesma/end_user_errors"
"github.com/QuesmaOrg/quesma/quesma/end_user_errors"
"strings"
)

Expand Down
8 changes: 4 additions & 4 deletions quesma/elasticsearch/index_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package elasticsearch

import (
"context"
"quesma/logger"
"quesma/quesma/config"
"quesma/quesma/recovery"
"quesma/util"
"github.com/QuesmaOrg/quesma/quesma/logger"
"github.com/QuesmaOrg/quesma/quesma/quesma/config"
"github.com/QuesmaOrg/quesma/quesma/quesma/recovery"
"github.com/QuesmaOrg/quesma/quesma/util"
"strings"
"sync/atomic"
"time"
Expand Down
Loading

0 comments on commit e88a6bf

Please sign in to comment.