Skip to content

Commit

Permalink
chore: switch to berty.tech/go-orbit-db canonical name
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Aug 12, 2019
1 parent 8523338 commit 75d80f5
Show file tree
Hide file tree
Showing 69 changed files with 341 additions and 279 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@
<img src="https://www.codefactor.io/repository/github/berty/go-orbit-db/badge"
alt="Code Factor">
</a>
<a href="https://goreportcard.com/report/berty/go-orbit-db">
<img src="https://goreportcard.com/badge/berty/go-orbit-db"
<a href="https://goreportcard.com/report/berty.tech/go-orbit-db">
<img src="https://goreportcard.com/badge/berty.tech/go-orbit-db"
alt="Go Report Card">
</a>
<a href="https://github.com/berty/go-orbit-db/releases">
<img src="https://badge.fury.io/gh/berty%2Fgo-orbit-db.svg"
alt="GitHub version">
</a>
<a href="https://codecov.io/gh/berty/go-orbit-db">
<img src="https://codecov.io/gh/berty/go-orbit-db/branch/master/graph/badge.svg"
alt="Coverage" />
</a>
<a href="https://godoc.org/berty.tech/go-orbit-db">
<img src="https://godoc.org/berty.tech/go-orbit-db?status.svg"
alt="GoDoc">
Expand Down
6 changes: 3 additions & 3 deletions accesscontroller/base/accesscontroller.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// base is a set of functions common to all access controllers
package base

import (
"context"
"github.com/berty/go-orbit-db/accesscontroller"
"github.com/berty/go-orbit-db/iface"

"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/iface"
"github.com/ipfs/go-cid"
"github.com/pkg/errors"
)
Expand Down
2 changes: 2 additions & 0 deletions accesscontroller/base/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// base is a set of functions common to all access controllers
package base // import "berty.tech/go-orbit-db/accescontroller/base"
2 changes: 2 additions & 0 deletions accesscontroller/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// accesscontroller is a package handling permissions for OrbitDB stores
package accesscontroller // import "berty.tech/go-orbit-db/accesscontroller"
8 changes: 4 additions & 4 deletions accesscontroller/interface.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// accesscontroller is a package handling permissions for OrbitDB stores
package accesscontroller

import (
"context"

"berty.tech/go-ipfs-log/entry"
idp "berty.tech/go-ipfs-log/identityprovider"
"context"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/events"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/events"
)

// Interface The interface for OrbitDB Access Controllers
Expand Down
18 changes: 9 additions & 9 deletions accesscontroller/ipfs/accesscontroller_ipfs.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// ipfs is an access controller
package ipfs

import (
"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
"berty.tech/go-ipfs-log/io"
"context"
"encoding/json"
"fmt"
"github.com/berty/go-orbit-db/accesscontroller"
"github.com/berty/go-orbit-db/accesscontroller/base"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/events"
"github.com/berty/go-orbit-db/iface"

"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
"berty.tech/go-ipfs-log/io"
"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/accesscontroller/base"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/events"
"berty.tech/go-orbit-db/iface"
"github.com/ipfs/go-cid"
cbornode "github.com/ipfs/go-ipld-cbor"
coreapi "github.com/ipfs/interface-go-ipfs-core"
Expand Down
2 changes: 2 additions & 0 deletions accesscontroller/ipfs/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// ipfs is an access controller
package ipfs // import "berty.tech/go-orbit-db/accesscontroller/ipfs"
5 changes: 3 additions & 2 deletions accesscontroller/manifest.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package accesscontroller

import (
"berty.tech/go-ipfs-log/io"
"context"
"strings"

"berty.tech/go-ipfs-log/io"
"github.com/ipfs/go-cid"
cbornode "github.com/ipfs/go-ipld-cbor"
coreapi "github.com/ipfs/interface-go-ipfs-core"
"github.com/pkg/errors"
"github.com/polydawn/refmt/obj/atlas"
"strings"
)

// Manifest An access controller manifest
Expand Down
22 changes: 11 additions & 11 deletions accesscontroller/orbitdb/accesscontroller_orbitdb.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// orbitdb is an access controller for OrbitDB stores
package orbitdb

import (
"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
"context"
"encoding/json"
"github.com/berty/go-orbit-db/accesscontroller"
"github.com/berty/go-orbit-db/accesscontroller/base"
"github.com/berty/go-orbit-db/accesscontroller/ipfs"
"github.com/berty/go-orbit-db/accesscontroller/utils"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/events"
"github.com/berty/go-orbit-db/iface"
"github.com/berty/go-orbit-db/stores"

"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/accesscontroller/base"
"berty.tech/go-orbit-db/accesscontroller/ipfs"
"berty.tech/go-orbit-db/accesscontroller/utils"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/events"
"berty.tech/go-orbit-db/iface"
"berty.tech/go-orbit-db/stores"
"github.com/pkg/errors"
)

Expand Down
2 changes: 2 additions & 0 deletions accesscontroller/orbitdb/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// orbitdb is an access controller for OrbitDB stores
package orbitdb // import "berty.tech/go-orbit-db/accesscontroller/orbitdb"
14 changes: 7 additions & 7 deletions accesscontroller/simple/accesscontroller_simple.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// simple is an access controller without any persistence
package simple

import (
"context"

"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
"context"
"github.com/berty/go-orbit-db/accesscontroller"
"github.com/berty/go-orbit-db/accesscontroller/base"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/events"
"github.com/berty/go-orbit-db/iface"
"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/accesscontroller/base"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/events"
"berty.tech/go-orbit-db/iface"
"github.com/ipfs/go-cid"
"github.com/pkg/errors"
)
Expand Down
2 changes: 2 additions & 0 deletions accesscontroller/simple/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// simple is an access controller without any persistence
package simple // import "berty.tech/go-orbit-db/accesscontroller/simple"
2 changes: 2 additions & 0 deletions accesscontroller/utils/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// utils is a package containing tools related to access controllers
package utils // import "berty.tech/go-orbit-db/accesscontroller/utils"
1 change: 0 additions & 1 deletion accesscontroller/utils/ensure_ac_address.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// utils is a package containing tools related to access controllers
package utils

import (
Expand Down
6 changes: 3 additions & 3 deletions address/address.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// address is a package for managing OrbitDB addresses
package address

import (
"fmt"
"github.com/ipfs/go-cid"
"github.com/pkg/errors"
"path"
"strings"

"github.com/ipfs/go-cid"
"github.com/pkg/errors"
)

// Address A store address
Expand Down
2 changes: 2 additions & 0 deletions address/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// address is a package for managing OrbitDB addresses
package address // import "berty.tech/go-orbit-db/address"
2 changes: 2 additions & 0 deletions cache/cacheleveldown/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// cacheleveldown is a package returning level db data stores for OrbitDB
package cacheleveldown // import "berty.tech/go-orbit-db/cache/cacheleveldown"
10 changes: 5 additions & 5 deletions cache/cacheleveldown/leveldown.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// cacheleveldown is a package returning level db data stores for OrbitDB
package cacheleveldown

import (
"fmt"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/cache"
"os"
"path"

"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/cache"
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/query"
leveldb "github.com/ipfs/go-ds-leveldb"
"github.com/pkg/errors"
"os"
"path"
)

var singleton cache.Interface
Expand Down
2 changes: 2 additions & 0 deletions cache/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// cache is a package defining the interface of cache factories
package cache // import "berty.tech/go-orbit-db/cache"
3 changes: 1 addition & 2 deletions cache/interface.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// cache is a package defining the interface of cache factories
package cache

import (
"github.com/berty/go-orbit-db/address"
"berty.tech/go-orbit-db/address"
"github.com/ipfs/go-datastore"
)

Expand Down
2 changes: 2 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// orbitdb implements the OrbitDB interface
package orbitdb // import "berty.tech/go-orbit-db"
2 changes: 2 additions & 0 deletions events/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// events defines an event subscriber and dispatcher
package events // import "berty.tech/go-orbit-db/events"
1 change: 0 additions & 1 deletion events/events.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// events defines an event subscriber and dispatcher
package events

import (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/berty/go-orbit-db
module berty.tech/go-orbit-db

go 1.12

Expand Down
2 changes: 2 additions & 0 deletions iface/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// iface package containing common structures and interfaces of orbitdb
package iface // import "berty.tech/go-orbit-db/iface"
14 changes: 7 additions & 7 deletions iface/interface.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// iface package containing common structures and interfaces of orbitdb
package iface

import (
"context"

ipfslog "berty.tech/go-ipfs-log"
"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
"berty.tech/go-ipfs-log/keystore"
"context"
"github.com/berty/go-orbit-db/accesscontroller"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/events"
"github.com/berty/go-orbit-db/stores/operation"
"github.com/berty/go-orbit-db/stores/replicator"
"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/events"
"berty.tech/go-orbit-db/stores/operation"
"berty.tech/go-orbit-db/stores/replicator"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
coreapi "github.com/ipfs/interface-go-ipfs-core"
Expand Down
44 changes: 22 additions & 22 deletions orbitdb.go
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
// orbitdb implements the OrbitDB interface
package orbitdb

import (
"context"
"encoding/json"
"fmt"
"path"
"strings"

"berty.tech/go-ipfs-log/entry"
"berty.tech/go-ipfs-log/identityprovider"
idp "berty.tech/go-ipfs-log/identityprovider"
"berty.tech/go-ipfs-log/io"
"berty.tech/go-ipfs-log/keystore"
"context"
"encoding/json"
"fmt"
"github.com/berty/go-orbit-db/accesscontroller"
"github.com/berty/go-orbit-db/accesscontroller/base"
ipfsAccessController "github.com/berty/go-orbit-db/accesscontroller/ipfs"
"github.com/berty/go-orbit-db/address"
"github.com/berty/go-orbit-db/cache"
"github.com/berty/go-orbit-db/cache/cacheleveldown"
"github.com/berty/go-orbit-db/events"
"github.com/berty/go-orbit-db/iface"
"github.com/berty/go-orbit-db/pubsub"
"github.com/berty/go-orbit-db/pubsub/oneonone"
"github.com/berty/go-orbit-db/pubsub/peermonitor"
"github.com/berty/go-orbit-db/stores"
"github.com/berty/go-orbit-db/stores/eventlogstore"
"github.com/berty/go-orbit-db/stores/kvstore"
"github.com/berty/go-orbit-db/utils"
"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/accesscontroller/base"
ipfsAccessController "berty.tech/go-orbit-db/accesscontroller/ipfs"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/cache"
"berty.tech/go-orbit-db/cache/cacheleveldown"
"berty.tech/go-orbit-db/events"
"berty.tech/go-orbit-db/iface"
"berty.tech/go-orbit-db/pubsub"
"berty.tech/go-orbit-db/pubsub/oneonone"
"berty.tech/go-orbit-db/pubsub/peermonitor"
"berty.tech/go-orbit-db/stores"
"berty.tech/go-orbit-db/stores/eventlogstore"
"berty.tech/go-orbit-db/stores/kvstore"
"berty.tech/go-orbit-db/utils"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-ds-leveldb"
leveldb "github.com/ipfs/go-ds-leveldb"
cbornode "github.com/ipfs/go-ipld-cbor"
coreapi "github.com/ipfs/interface-go-ipfs-core"
p2pcore "github.com/libp2p/go-libp2p-core"
"github.com/pkg/errors"
"go.uber.org/zap"
"path"
"strings"
)

// OrbitDB An alias of the type defined in the iface package
Expand Down
2 changes: 2 additions & 0 deletions pubsub/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// pubsub a publish subscribe client for IPFS PubSub
package pubsub // import "berty.tech/go-orbit-db/pubsub"
2 changes: 1 addition & 1 deletion pubsub/event.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pubsub

import "github.com/berty/go-orbit-db/events"
import "berty.tech/go-orbit-db/events"

// MessageEvent Indicates a new message posted on a pubsub topic
type MessageEvent struct {
Expand Down
4 changes: 2 additions & 2 deletions pubsub/interface.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// pubsub a publish subscribe client for IPFS PubSub
package pubsub

import (
"context"
"github.com/berty/go-orbit-db/events"
"io"

"berty.tech/go-orbit-db/events"
)

// Subscription is a pub sub subscription to a topic
Expand Down
10 changes: 5 additions & 5 deletions pubsub/oneonone/channel.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// oneonone is a pubsub channel for communication between two peers
package oneonone

import (
"context"
"fmt"
"github.com/berty/go-orbit-db/events"
"sort"
"strings"
"time"

"berty.tech/go-orbit-db/events"
coreapi "github.com/ipfs/interface-go-ipfs-core"
iface "github.com/ipfs/interface-go-ipfs-core"
"github.com/ipfs/interface-go-ipfs-core/options"
p2pcore "github.com/libp2p/go-libp2p-core"
"github.com/pkg/errors"
"go.uber.org/zap"
"sort"
"strings"
"time"
)

type channel struct {
Expand Down
2 changes: 2 additions & 0 deletions pubsub/oneonone/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// oneonone is a pubsub channel for communication between two peers
package oneonone // import "berty.tech/go-orbit-db/pubsub/oneonone"
Loading

0 comments on commit 75d80f5

Please sign in to comment.