Skip to content

Commit

Permalink
add api folder
Browse files Browse the repository at this point in the history
  • Loading branch information
csimplestring committed Jul 11, 2021
1 parent b34ea2a commit 7dda73b
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 24 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dnf/indexer/indexer.go → api/dnf/indexer/indexer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package indexer

import (
"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
)

// Indexer defines the top level indexer interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package indexer

import (
"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer/posting"
)

const zeroKey string = ":"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dnf/indexer/record.go → api/dnf/indexer/record.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package indexer

import "github.com/csimplestring/bool-expr-indexer/dnf/indexer/posting"
import "github.com/csimplestring/bool-expr-indexer/api/dnf/indexer/posting"

// Record represents a key-value entry in indexer shard.
type Record struct {
Expand Down
6 changes: 3 additions & 3 deletions dnf/matcher/match_all.go → api/dnf/matcher/match_all.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package matcher

import (
"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer/posting"
)

type AllMatcher interface {
Expand Down
10 changes: 5 additions & 5 deletions dnf/matcher/match_top.go → api/dnf/matcher/match_top.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package matcher

import (
"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/dnf/matcher/pq"
"github.com/csimplestring/bool-expr-indexer/dnf/scorer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/api/dnf/matcher/pq"
"github.com/csimplestring/bool-expr-indexer/api/dnf/scorer"
)

type TopNMatcher interface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"sync"
"testing"

"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/dnf/scorer"
"github.com/csimplestring/bool-expr-indexer/dnf/tools"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/scorer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/tools"
"github.com/stretchr/testify/assert"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package matcher

import (
"github.com/csimplestring/bool-expr-indexer/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/dnf/scorer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/api/dnf/scorer"
)

type plistIter struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package matcher
import (
"testing"

"github.com/csimplestring/bool-expr-indexer/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer/posting"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer/posting"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dnf/matcher/ranker.go → api/dnf/matcher/ranker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matcher
import (
"sort"

"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
)

type ranker struct {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions dnf/tools/bench.go → api/dnf/tools/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"runtime"
"time"

"github.com/csimplestring/bool-expr-indexer/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/dnf/indexer"
"github.com/csimplestring/bool-expr-indexer/api/dnf/expr"
"github.com/csimplestring/bool-expr-indexer/api/dnf/indexer"
"github.com/dchest/uniuri"
)

Expand Down

0 comments on commit 7dda73b

Please sign in to comment.