Skip to content

Commit

Permalink
chore: Update Go module name and import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
i5heu committed May 7, 2024
1 parent 0b00f64 commit 9fb2908
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 20 deletions.
5 changes: 3 additions & 2 deletions cmd/benchmark/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"fmt"
"log"
"os"
"ouroboros-db/internal/keyValStore"
"ouroboros-db/internal/storage"
"path/filepath"
"sync"
"sync/atomic"
"time"

"github.com/i5heu/ouroboros-db/internal/keyValStore"
"github.com/i5heu/ouroboros-db/internal/storage"
)

func main() {
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module ouroboros-db
module github.com/i5heu/ouroboros-db

go 1.21.5

require (
github.com/google/fscrypt v0.3.5
github.com/ipfs/boxo v0.19.0
github.com/shirou/gopsutil v3.21.11+incompatible
google.golang.org/protobuf v1.34.0
gopkg.in/yaml.v2 v2.4.0
)
Expand All @@ -23,7 +23,6 @@ require (
github.com/klauspost/compress v1.17.8 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/net v0.25.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/flatbuffers v24.3.25+incompatible h1:CX395cjN9Kke9mmalRoL3d81AtFUxJM+yDthflgJGkI=
github.com/google/flatbuffers v24.3.25+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
github.com/google/fscrypt v0.3.5 h1:RunYtVg2Z79hfh1W1ZP1k7TaSMYkbELUyMMzAmikyTc=
github.com/google/fscrypt v0.3.5/go.mod h1:HyY8Z/kUPrnIKAwuhjrn2tSTM5/s9zfRRTqRMG0mHks=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
Expand Down
3 changes: 2 additions & 1 deletion internal/index/index.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package index

import (
"ouroboros-db/internal/storage"
"sync"

"github.com/i5heu/ouroboros-db/internal/storage"
)

type Index struct {
Expand Down
3 changes: 2 additions & 1 deletion internal/keyValStore/keyValStore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package keyValStore
import (
"encoding/hex"
"fmt"
"ouroboros-db/pkg/buzhashChunker"
"runtime"
"sync/atomic"
"time"

"github.com/i5heu/ouroboros-db/pkg/buzhashChunker"

"github.com/dgraph-io/badger/v4"
"github.com/sirupsen/logrus"
)
Expand Down
5 changes: 3 additions & 2 deletions internal/storage/storageService.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package storage
import (
"fmt"
"log"
"ouroboros-db/internal/keyValStore"
"ouroboros-db/pkg/buzhashChunker"
"sync"

"github.com/i5heu/ouroboros-db/internal/keyValStore"
"github.com/i5heu/ouroboros-db/pkg/buzhashChunker"
)

type Storage struct {
Expand Down
9 changes: 5 additions & 4 deletions ouroboros.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package ouroboros
import (
"fmt"
"os"
"ouroboros-db/internal/index"
"ouroboros-db/internal/keyValStore"
"ouroboros-db/internal/storage"
"ouroboros-db/pkg/api"
"time"

"github.com/i5heu/ouroboros-db/internal/index"
"github.com/i5heu/ouroboros-db/internal/keyValStore"
"github.com/i5heu/ouroboros-db/internal/storage"
"github.com/i5heu/ouroboros-db/pkg/api"

"github.com/sirupsen/logrus"

"github.com/dgraph-io/badger/v4"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package api

import "ouroboros-db/internal/storage"
import "github.com/i5heu/ouroboros-db/internal/storage"

type DB interface {
StoreFile(options storage.StoreFileOptions) (storage.Event, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/outypes/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package outypes

import (
"ouroboros-db/internal/storage"
"github.com/i5heu/ouroboros-db/internal/storage"
)

// Event represents an event in the EventChain, the absolute top of a EventChain is a RootEvent, look at rootEvents.go
Expand Down
3 changes: 2 additions & 1 deletion tests/ouroboros_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package ouroboros_test
import (
"fmt"
"math/rand"
"ouroboros-db/internal/storage"
"testing"
"time"

"github.com/i5heu/ouroboros-db/internal/storage"
)

func Benchmark_setupDBWithData(b *testing.B) {
Expand Down
5 changes: 3 additions & 2 deletions tests/ouroboros_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package ouroboros_test
import (
"fmt"
"math/rand"
"ouroboros-db"
"ouroboros-db/internal/storage"
"testing"
"time"

"github.com/i5heu/ouroboros-db"
"github.com/i5heu/ouroboros-db/internal/storage"
)

type setupDBConfig struct {
Expand Down

0 comments on commit 9fb2908

Please sign in to comment.