Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
377f98a1
Commit
377f98a1
authored
Jan 24, 2020
by
Janos Guljas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transfer repository to github.com/ethersphere/bee
parent
e606e818
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
34 additions
and
35 deletions
+34
-35
.goreleaser.yml
.goreleaser.yml
+1
-1
Makefile
Makefile
+1
-1
README.md
README.md
+0
-2
cmd_test.go
cmd/bee/cmd/cmd_test.go
+1
-1
start.go
cmd/bee/cmd/start.go
+3
-3
version.go
cmd/bee/cmd/version.go
+1
-1
version_test.go
cmd/bee/cmd/version_test.go
+2
-2
main.go
cmd/bee/main.go
+1
-1
go.mod
go.mod
+1
-1
api.go
pkg/api/api.go
+2
-2
metrics.go
pkg/api/metrics.go
+1
-1
metrics.go
pkg/debugapi/metrics.go
+1
-1
node.go
pkg/node/node.go
+4
-4
handshake.go
pkg/p2p/libp2p/internal/handshake/handshake.go
+2
-2
libp2p.go
pkg/p2p/libp2p/libp2p.go
+2
-2
metrics.go
pkg/p2p/libp2p/metrics.go
+2
-1
mock.go
pkg/p2p/mock/mock.go
+1
-1
protobuf.go
pkg/p2p/protobuf/protobuf.go
+1
-1
metrics.go
pkg/pingpong/metrics.go
+1
-1
pingpong.go
pkg/pingpong/pingpong.go
+2
-2
pingpong_test.go
pkg/pingpong/pingpong_test.go
+4
-4
No files found.
.goreleaser.yml
View file @
377f98a1
...
...
@@ -10,7 +10,7 @@ builds:
-
-trimpath
ldflags
:
-
-s -w -X github.com/
janos/bee.version={{.Version}} -X github.com/janos
/bee.commit={{.ShortCommit}}
-
-s -w -X github.com/
ethersphere/bee.version={{.Version}} -X github.com/ethersphere
/bee.commit={{.ShortCommit}}
env
:
-
CGO_ENABLED=0
...
...
Makefile
View file @
377f98a1
...
...
@@ -3,7 +3,7 @@ COMMIT ?= ""
GO
?=
go
GOLANGCI_LINT
?=
golangci-lint
LDFLAGS
?=
-s
-w
-X
github.com/
janos
/bee.commit
=
"
$(COMMIT)
"
LDFLAGS
?=
-s
-w
-X
github.com/
ethersphere
/bee.commit
=
"
$(COMMIT)
"
.PHONY
:
all
all
:
lint vet test binary
...
...
README.md
View file @
377f98a1
...
...
@@ -11,8 +11,6 @@ make binary
cp
dist/bee /usr/local/bin/bee
```
Docker image
`janos/bee`
.
## Usage (experimental api)
Execute the command terminals to start
`node 1`
:
...
...
cmd/bee/cmd/cmd_test.go
View file @
377f98a1
...
...
@@ -10,7 +10,7 @@ import (
"os"
"testing"
"github.com/
janos
/bee/cmd/bee/cmd"
"github.com/
ethersphere
/bee/cmd/bee/cmd"
)
var
homeDir
string
...
...
cmd/bee/cmd/start.go
View file @
377f98a1
...
...
@@ -19,9 +19,9 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/
janos
/bee/pkg/logging"
"github.com/
janos
/bee/pkg/node"
"github.com/
janos
/bee/pkg/p2p/libp2p"
"github.com/
ethersphere
/bee/pkg/logging"
"github.com/
ethersphere
/bee/pkg/node"
"github.com/
ethersphere
/bee/pkg/p2p/libp2p"
)
func
(
c
*
command
)
initStartCmd
()
(
err
error
)
{
...
...
cmd/bee/cmd/version.go
View file @
377f98a1
...
...
@@ -5,7 +5,7 @@
package
cmd
import
(
"github.com/
janos
/bee"
"github.com/
ethersphere
/bee"
"github.com/spf13/cobra"
)
...
...
cmd/bee/cmd/version_test.go
View file @
377f98a1
...
...
@@ -8,8 +8,8 @@ import (
"bytes"
"testing"
"github.com/
janos
/bee"
"github.com/
janos
/bee/cmd/bee/cmd"
"github.com/
ethersphere
/bee"
"github.com/
ethersphere
/bee/cmd/bee/cmd"
)
func
TestVersionCmd
(
t
*
testing
.
T
)
{
...
...
cmd/bee/main.go
View file @
377f98a1
...
...
@@ -8,7 +8,7 @@ import (
"fmt"
"os"
"github.com/
janos
/bee/cmd/bee/cmd"
"github.com/
ethersphere
/bee/cmd/bee/cmd"
)
func
main
()
{
...
...
go.mod
View file @
377f98a1
module github.com/
janos
/bee
module github.com/
ethersphere
/bee
go 1.13
...
...
pkg/api/api.go
View file @
377f98a1
...
...
@@ -7,8 +7,8 @@ package api
import
(
"net/http"
"github.com/
janos
/bee/pkg/p2p"
"github.com/
janos
/bee/pkg/pingpong"
"github.com/
ethersphere
/bee/pkg/p2p"
"github.com/
ethersphere
/bee/pkg/pingpong"
"github.com/prometheus/client_golang/prometheus"
)
...
...
pkg/api/metrics.go
View file @
377f98a1
...
...
@@ -8,7 +8,7 @@ import (
"net/http"
"time"
m
"github.com/
janos
/bee/pkg/metrics"
m
"github.com/
ethersphere
/bee/pkg/metrics"
"github.com/prometheus/client_golang/prometheus"
)
...
...
pkg/debugapi/metrics.go
View file @
377f98a1
...
...
@@ -5,7 +5,7 @@
package
debugapi
import
(
"github.com/
janos
/bee"
"github.com/
ethersphere
/bee"
"github.com/prometheus/client_golang/prometheus"
)
...
...
pkg/node/node.go
View file @
377f98a1
...
...
@@ -15,10 +15,10 @@ import (
"github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
"github.com/
janos
/bee/pkg/api"
"github.com/
janos
/bee/pkg/debugapi"
"github.com/
janos
/bee/pkg/p2p/libp2p"
"github.com/
janos
/bee/pkg/pingpong"
"github.com/
ethersphere
/bee/pkg/api"
"github.com/
ethersphere
/bee/pkg/debugapi"
"github.com/
ethersphere
/bee/pkg/p2p/libp2p"
"github.com/
ethersphere
/bee/pkg/pingpong"
)
type
Bee
struct
{
...
...
pkg/p2p/libp2p/internal/handshake/handshake.go
View file @
377f98a1
...
...
@@ -9,8 +9,8 @@ package handshake
import
(
"fmt"
"github.com/
janos
/bee/pkg/p2p"
"github.com/
janos
/bee/pkg/p2p/protobuf"
"github.com/
ethersphere
/bee/pkg/p2p"
"github.com/
ethersphere
/bee/pkg/p2p/protobuf"
)
const
(
...
...
pkg/p2p/libp2p/libp2p.go
View file @
377f98a1
...
...
@@ -16,9 +16,9 @@ import (
"strconv"
"time"
"github.com/
janos
/bee/pkg/p2p"
"github.com/
ethersphere
/bee/pkg/p2p"
handshake
"github.com/
janos
/bee/pkg/p2p/libp2p/internal/handshake"
handshake
"github.com/
ethersphere
/bee/pkg/p2p/libp2p/internal/handshake"
"github.com/libp2p/go-libp2p"
autonat
"github.com/libp2p/go-libp2p-autonat-svc"
connmgr
"github.com/libp2p/go-libp2p-connmgr"
...
...
pkg/p2p/libp2p/metrics.go
View file @
377f98a1
...
...
@@ -5,10 +5,11 @@
package
libp2p
import
(
m
"github.com/
janos
/bee/pkg/metrics"
m
"github.com/
ethersphere
/bee/pkg/metrics"
"github.com/prometheus/client_golang/prometheus"
)
type
metrics
struct
{
// all metrics fields must be exported
// to be able to return them by Metrics()
...
...
pkg/p2p/mock/mock.go
View file @
377f98a1
...
...
@@ -10,7 +10,7 @@ import (
"io"
"sync"
"github.com/
janos
/bee/pkg/p2p"
"github.com/
ethersphere
/bee/pkg/p2p"
)
type
Recorder
struct
{
...
...
pkg/p2p/protobuf/protobuf.go
View file @
377f98a1
...
...
@@ -7,7 +7,7 @@ package protobuf
import
(
ggio
"github.com/gogo/protobuf/io"
"github.com/gogo/protobuf/proto"
"github.com/
janos
/bee/pkg/p2p"
"github.com/
ethersphere
/bee/pkg/p2p"
"io"
)
...
...
pkg/pingpong/metrics.go
View file @
377f98a1
...
...
@@ -5,7 +5,7 @@
package
pingpong
import
(
m
"github.com/
janos
/bee/pkg/metrics"
m
"github.com/
ethersphere
/bee/pkg/metrics"
"github.com/prometheus/client_golang/prometheus"
)
...
...
pkg/pingpong/pingpong.go
View file @
377f98a1
...
...
@@ -11,8 +11,8 @@ import (
"io"
"time"
"github.com/
janos
/bee/pkg/p2p"
"github.com/
janos
/bee/pkg/p2p/protobuf"
"github.com/
ethersphere
/bee/pkg/p2p"
"github.com/
ethersphere
/bee/pkg/p2p/protobuf"
)
const
(
...
...
pkg/pingpong/pingpong_test.go
View file @
377f98a1
...
...
@@ -11,10 +11,10 @@ import (
"io/ioutil"
"testing"
"github.com/
janos
/bee/pkg/logging"
"github.com/
janos
/bee/pkg/p2p/mock"
"github.com/
janos
/bee/pkg/p2p/protobuf"
"github.com/
janos
/bee/pkg/pingpong"
"github.com/
ethersphere
/bee/pkg/logging"
"github.com/
ethersphere
/bee/pkg/p2p/mock"
"github.com/
ethersphere
/bee/pkg/p2p/protobuf"
"github.com/
ethersphere
/bee/pkg/pingpong"
)
func
TestPing
(
t
*
testing
.
T
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment