Skip to content

Commit

Permalink
renamed to purbkv
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Mar 22, 2024
1 parent 7bff999 commit 42355df
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion store/kv/blob.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Blob is a wrapper around libpurb.Purb
package kv
package purbkv

import (
"go.dedis.ch/kyber/v3/group/curve25519"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/bucket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"slices"
Expand Down
4 changes: 2 additions & 2 deletions store/kv/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (m minimalController) SetCommands(builder node.Builder) {}
// OnStart implements node.Initializer. It opens the database in a file using
// the config path as the base.
func (m minimalController) OnStart(flags cli.Flags, inj node.Injector) error {
db, err := kv.NewDB(flags.String("config"), m.purbIsOn)
db, err := purbkv.NewDB(flags.String("config"), m.purbIsOn)
if err != nil {
return xerrors.Errorf("db: %v", err)
}
Expand All @@ -51,7 +51,7 @@ func (m minimalController) OnStart(flags cli.Flags, inj node.Injector) error {

// OnStop implements node.Initializer. It closes the database.
func (m minimalController) OnStop(inj node.Injector) error {
var db kv.DB
var db purbkv.DB
err := inj.Resolve(&db)
if err != nil {
return xerrors.Errorf("injector: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion store/kv/db.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/db_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/keyloader.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/keyloader_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/purbdb_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/kv.go → store/kv/purbkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// bbolt as the engine (https://github.com/etcd-io/bbolt).
//
// Documentation Last Review: 08.10.2020
package kv
package purbkv

import "go.dedis.ch/dela/core/store"

Expand Down
2 changes: 1 addition & 1 deletion store/kv/transaction.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"golang.org/x/exp/maps"
Expand Down

0 comments on commit 42355df

Please sign in to comment.