move to go-libp2p-pubsub

Updates for move from go-floodsub to go-libp2p-pubsub.

fixes https://github.com/libp2p/go-libp2p-pubsub/issues/4
This commit is contained in:
Steven Allen 2018-08-27 20:01:08 -07:00
parent 4e9a7a9b4d
commit bd1a4630b9
17 changed files with 100 additions and 103 deletions

View File

@ -1,4 +1,4 @@
# go-floodsub
# go-libp2p-pubsub
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-libp2p-blue.svg?style=flat-square)](http://github.com/libp2p/libp2p)
@ -6,9 +6,7 @@
> A pubsub system with flooding and gossiping variants.
<!--TODO: change this repo/package name to pubsub-->
PubSub is a work in progress, with floodsub as an initial protocol, followed by gossipsub ([spec](https://github.com/libp2p/specs/tree/master/pubsub/gossipsub), [gossipsub.go](https://github.com/libp2p/go-floodsub/blob/master/gossipsub.go)).
PubSub is a work in progress, with floodsub as an initial protocol, followed by gossipsub ([spec](https://github.com/libp2p/specs/tree/master/pubsub/gossipsub), [gossipsub.go](https://github.com/libp2p/go-libp2p-pubsub/blob/master/gossipsub.go)).
## Table of Contents
@ -20,7 +18,7 @@ PubSub is a work in progress, with floodsub as an initial protocol, followed by
## Install
```
go get github.com/libp2p/go-floodsub
go get github.com/libp2p/go-libp2p-pubsub
```
## Usage
@ -33,7 +31,7 @@ See [libp2p/specs/pubsub#Implementations](https://github.com/libp2p/specs/tree/m
## Contribute
Contributions welcome. Please check out [the issues](https://github.com/libp2p/go-floodsub/issues).
Contributions welcome. Please check out [the issues](https://github.com/libp2p/go-libp2p-pubsub/issues).
Check out our [contributing document](https://github.com/libp2p/community/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

View File

@ -1,11 +1,11 @@
package floodsub
package pubsub
import (
"bufio"
"context"
"io"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
ggio "github.com/gogo/protobuf/io"
proto "github.com/gogo/protobuf/proto"

View File

@ -1,9 +1,9 @@
package floodsub
package pubsub
import (
"context"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
host "github.com/libp2p/go-libp2p-host"
peer "github.com/libp2p/go-libp2p-peer"

View File

@ -1,4 +1,4 @@
package floodsub
package pubsub
import (
"bytes"

View File

@ -1,11 +1,11 @@
package floodsub
package pubsub
import (
"context"
"math/rand"
"time"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
host "github.com/libp2p/go-libp2p-host"
peer "github.com/libp2p/go-libp2p-peer"

View File

@ -1,4 +1,4 @@
package floodsub
package pubsub
import (
"bytes"

View File

@ -1,7 +1,7 @@
package floodsub
package pubsub
import (
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
)
func NewMessageCache(gossip, history int) *MessageCache {

View File

@ -1,11 +1,11 @@
package floodsub
package pubsub
import (
"encoding/binary"
"fmt"
"testing"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
)
func TestMessageCache(t *testing.T) {

View File

@ -1,4 +1,4 @@
package floodsub
package pubsub
import (
inet "github.com/libp2p/go-libp2p-net"

View File

@ -1,10 +1,10 @@
{
"author": "whyrusleeping",
"bugs": {
"url": "https://github.com/libp2p/go-floodsub"
"url": "https://github.com/libp2p/go-libp2p-pubsub"
},
"gx": {
"dvcsimport": "github.com/libp2p/go-floodsub"
"dvcsimport": "github.com/libp2p/go-libp2p-pubsub"
},
"gxDependencies": [
{
@ -75,8 +75,8 @@
],
"gxVersion": "0.9.0",
"language": "go",
"license": "",
"name": "go-libp2p-floodsub",
"license": "MIT",
"name": "go-libp2p-pubsub",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.9.36"
}

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: rpc.proto
package floodsub_pb
package pubsub_pb
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
@ -56,7 +56,7 @@ func (x *TopicDescriptor_AuthOpts_AuthMode) UnmarshalJSON(data []byte) error {
return nil
}
func (TopicDescriptor_AuthOpts_AuthMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{7, 0, 0}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 0, 0}
}
type TopicDescriptor_EncOpts_EncMode int32
@ -95,7 +95,7 @@ func (x *TopicDescriptor_EncOpts_EncMode) UnmarshalJSON(data []byte) error {
return nil
}
func (TopicDescriptor_EncOpts_EncMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{7, 1, 0}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 1, 0}
}
type RPC struct {
@ -111,7 +111,7 @@ func (m *RPC) Reset() { *m = RPC{} }
func (m *RPC) String() string { return proto.CompactTextString(m) }
func (*RPC) ProtoMessage() {}
func (*RPC) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{0}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{0}
}
func (m *RPC) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -173,7 +173,7 @@ func (m *RPC_SubOpts) Reset() { *m = RPC_SubOpts{} }
func (m *RPC_SubOpts) String() string { return proto.CompactTextString(m) }
func (*RPC_SubOpts) ProtoMessage() {}
func (*RPC_SubOpts) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{0, 0}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{0, 0}
}
func (m *RPC_SubOpts) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -232,7 +232,7 @@ func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{1}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{1}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -317,7 +317,7 @@ func (m *ControlMessage) Reset() { *m = ControlMessage{} }
func (m *ControlMessage) String() string { return proto.CompactTextString(m) }
func (*ControlMessage) ProtoMessage() {}
func (*ControlMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{2}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{2}
}
func (m *ControlMessage) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -386,7 +386,7 @@ func (m *ControlIHave) Reset() { *m = ControlIHave{} }
func (m *ControlIHave) String() string { return proto.CompactTextString(m) }
func (*ControlIHave) ProtoMessage() {}
func (*ControlIHave) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{3}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{3}
}
func (m *ControlIHave) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -440,7 +440,7 @@ func (m *ControlIWant) Reset() { *m = ControlIWant{} }
func (m *ControlIWant) String() string { return proto.CompactTextString(m) }
func (*ControlIWant) ProtoMessage() {}
func (*ControlIWant) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{4}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{4}
}
func (m *ControlIWant) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -487,7 +487,7 @@ func (m *ControlGraft) Reset() { *m = ControlGraft{} }
func (m *ControlGraft) String() string { return proto.CompactTextString(m) }
func (*ControlGraft) ProtoMessage() {}
func (*ControlGraft) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{5}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{5}
}
func (m *ControlGraft) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -534,7 +534,7 @@ func (m *ControlPrune) Reset() { *m = ControlPrune{} }
func (m *ControlPrune) String() string { return proto.CompactTextString(m) }
func (*ControlPrune) ProtoMessage() {}
func (*ControlPrune) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{6}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{6}
}
func (m *ControlPrune) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -570,7 +570,6 @@ func (m *ControlPrune) GetTopicID() string {
return ""
}
// topicID = hash(topicDescriptor); (not the topic.name)
type TopicDescriptor struct {
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Auth *TopicDescriptor_AuthOpts `protobuf:"bytes,2,opt,name=auth" json:"auth,omitempty"`
@ -584,7 +583,7 @@ func (m *TopicDescriptor) Reset() { *m = TopicDescriptor{} }
func (m *TopicDescriptor) String() string { return proto.CompactTextString(m) }
func (*TopicDescriptor) ProtoMessage() {}
func (*TopicDescriptor) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{7}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7}
}
func (m *TopicDescriptor) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -635,7 +634,7 @@ func (m *TopicDescriptor) GetEnc() *TopicDescriptor_EncOpts {
}
type TopicDescriptor_AuthOpts struct {
Mode *TopicDescriptor_AuthOpts_AuthMode `protobuf:"varint,1,opt,name=mode,enum=floodsub.pb.TopicDescriptor_AuthOpts_AuthMode" json:"mode,omitempty"`
Mode *TopicDescriptor_AuthOpts_AuthMode `protobuf:"varint,1,opt,name=mode,enum=pubsub.pb.TopicDescriptor_AuthOpts_AuthMode" json:"mode,omitempty"`
Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@ -646,7 +645,7 @@ func (m *TopicDescriptor_AuthOpts) Reset() { *m = TopicDescriptor_AuthOp
func (m *TopicDescriptor_AuthOpts) String() string { return proto.CompactTextString(m) }
func (*TopicDescriptor_AuthOpts) ProtoMessage() {}
func (*TopicDescriptor_AuthOpts) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{7, 0}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 0}
}
func (m *TopicDescriptor_AuthOpts) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -690,7 +689,7 @@ func (m *TopicDescriptor_AuthOpts) GetKeys() [][]byte {
}
type TopicDescriptor_EncOpts struct {
Mode *TopicDescriptor_EncOpts_EncMode `protobuf:"varint,1,opt,name=mode,enum=floodsub.pb.TopicDescriptor_EncOpts_EncMode" json:"mode,omitempty"`
Mode *TopicDescriptor_EncOpts_EncMode `protobuf:"varint,1,opt,name=mode,enum=pubsub.pb.TopicDescriptor_EncOpts_EncMode" json:"mode,omitempty"`
KeyHashes [][]byte `protobuf:"bytes,2,rep,name=keyHashes" json:"keyHashes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@ -701,7 +700,7 @@ func (m *TopicDescriptor_EncOpts) Reset() { *m = TopicDescriptor_EncOpts
func (m *TopicDescriptor_EncOpts) String() string { return proto.CompactTextString(m) }
func (*TopicDescriptor_EncOpts) ProtoMessage() {}
func (*TopicDescriptor_EncOpts) Descriptor() ([]byte, []int) {
return fileDescriptor_rpc_0c4744ec88cf773a, []int{7, 1}
return fileDescriptor_rpc_f0491c6c9ffa591d, []int{7, 1}
}
func (m *TopicDescriptor_EncOpts) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@ -745,19 +744,19 @@ func (m *TopicDescriptor_EncOpts) GetKeyHashes() [][]byte {
}
func init() {
proto.RegisterType((*RPC)(nil), "floodsub.pb.RPC")
proto.RegisterType((*RPC_SubOpts)(nil), "floodsub.pb.RPC.SubOpts")
proto.RegisterType((*Message)(nil), "floodsub.pb.Message")
proto.RegisterType((*ControlMessage)(nil), "floodsub.pb.ControlMessage")
proto.RegisterType((*ControlIHave)(nil), "floodsub.pb.ControlIHave")
proto.RegisterType((*ControlIWant)(nil), "floodsub.pb.ControlIWant")
proto.RegisterType((*ControlGraft)(nil), "floodsub.pb.ControlGraft")
proto.RegisterType((*ControlPrune)(nil), "floodsub.pb.ControlPrune")
proto.RegisterType((*TopicDescriptor)(nil), "floodsub.pb.TopicDescriptor")
proto.RegisterType((*TopicDescriptor_AuthOpts)(nil), "floodsub.pb.TopicDescriptor.AuthOpts")
proto.RegisterType((*TopicDescriptor_EncOpts)(nil), "floodsub.pb.TopicDescriptor.EncOpts")
proto.RegisterEnum("floodsub.pb.TopicDescriptor_AuthOpts_AuthMode", TopicDescriptor_AuthOpts_AuthMode_name, TopicDescriptor_AuthOpts_AuthMode_value)
proto.RegisterEnum("floodsub.pb.TopicDescriptor_EncOpts_EncMode", TopicDescriptor_EncOpts_EncMode_name, TopicDescriptor_EncOpts_EncMode_value)
proto.RegisterType((*RPC)(nil), "pubsub.pb.RPC")
proto.RegisterType((*RPC_SubOpts)(nil), "pubsub.pb.RPC.SubOpts")
proto.RegisterType((*Message)(nil), "pubsub.pb.Message")
proto.RegisterType((*ControlMessage)(nil), "pubsub.pb.ControlMessage")
proto.RegisterType((*ControlIHave)(nil), "pubsub.pb.ControlIHave")
proto.RegisterType((*ControlIWant)(nil), "pubsub.pb.ControlIWant")
proto.RegisterType((*ControlGraft)(nil), "pubsub.pb.ControlGraft")
proto.RegisterType((*ControlPrune)(nil), "pubsub.pb.ControlPrune")
proto.RegisterType((*TopicDescriptor)(nil), "pubsub.pb.TopicDescriptor")
proto.RegisterType((*TopicDescriptor_AuthOpts)(nil), "pubsub.pb.TopicDescriptor.AuthOpts")
proto.RegisterType((*TopicDescriptor_EncOpts)(nil), "pubsub.pb.TopicDescriptor.EncOpts")
proto.RegisterEnum("pubsub.pb.TopicDescriptor_AuthOpts_AuthMode", TopicDescriptor_AuthOpts_AuthMode_name, TopicDescriptor_AuthOpts_AuthMode_value)
proto.RegisterEnum("pubsub.pb.TopicDescriptor_EncOpts_EncMode", TopicDescriptor_EncOpts_EncMode_name, TopicDescriptor_EncOpts_EncMode_value)
}
func (m *RPC) Marshal() (dAtA []byte, err error) {
size := m.Size()
@ -2943,46 +2942,46 @@ var (
ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("rpc.proto", fileDescriptor_rpc_0c4744ec88cf773a) }
func init() { proto.RegisterFile("rpc.proto", fileDescriptor_rpc_f0491c6c9ffa591d) }
var fileDescriptor_rpc_0c4744ec88cf773a = []byte{
// 602 bytes of a gzipped FileDescriptorProto
var fileDescriptor_rpc_f0491c6c9ffa591d = []byte{
// 599 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xc7, 0xd9, 0x38, 0xc5, 0xf1, 0xc4, 0x2d, 0xd1, 0xaa, 0x07, 0x13, 0xaa, 0x28, 0xb2, 0x00,
0x59, 0x02, 0x19, 0x29, 0x12, 0x48, 0x5c, 0x10, 0x6d, 0x13, 0x91, 0x08, 0xf5, 0x43, 0xdb, 0x4a,
0x15, 0xc7, 0xb5, 0xb3, 0x6d, 0xac, 0x36, 0x5e, 0x63, 0xaf, 0x8b, 0xfa, 0x0a, 0x5c, 0x91, 0x78,
0x1c, 0xce, 0x1c, 0x39, 0xf0, 0x00, 0xa8, 0x2f, 0xc0, 0x2b, 0xa0, 0x1d, 0x3b, 0x1f, 0x2e, 0x4d,
0xd5, 0x53, 0x66, 0x27, 0xff, 0xdf, 0xce, 0x7f, 0x66, 0xd6, 0x60, 0xa5, 0x49, 0xe8, 0x27, 0xa9,
0x54, 0x92, 0x36, 0x4f, 0x2f, 0xa4, 0x1c, 0x67, 0x79, 0xe0, 0x27,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0xee, 0x5e, 0x26, 0x47, 0xf8,
0x0b, 0xa1, 0x80, 0xbe, 0x04, 0x4d, 0x84, 0x7e, 0xf1, 0x1f, 0xd8, 0xb7, 0xe8, 0xba, 0xa1, 0x8f,
0x32, 0x85, 0x37, 0xbe, 0x10, 0xa8, 0xcd, 0x0f, 0xa2, 0x6f, 0xa1, 0x3a, 0x89, 0x06, 0xb9, 0x9f,
0xed, 0xf6, 0xee, 0x7f, 0xd4, 0xc6, 0xe0, 0x20, 0x1a, 0x08, 0x86, 0x4a, 0xd5, 0xd1, 0x58, 0x4c,
0xf3, 0x3b, 0x30, 0x19, 0xc6, 0xf6, 0x93, 0xbc, 0x82, 0xa2, 0x68, 0x0d, 0xaa, 0x87, 0x47, 0x87,
0xdd, 0xfa, 0x1d, 0xaa, 0x83, 0xf6, 0xa1, 0xfb, 0xb1, 0x4e, 0x54, 0x70, 0x76, 0x74, 0x5a, 0xaf,
0x34, 0xbe, 0x11, 0xd0, 0x0b, 0x6f, 0xf4, 0xcd, 0x8a, 0x93, 0xa7, 0xff, 0xee, 0x46, 0x7d, 0x4b,
0x3e, 0x76, 0xc0, 0x18, 0x8b, 0x69, 0x8f, 0xa7, 0x23, 0x31, 0x37, 0xb3, 0x4c, 0xd8, 0xcf, 0xb0,
0xd0, 0x9a, 0xa1, 0x2d, 0x30, 0x4e, 0x7a, 0x7b, 0xac, 0xdb, 0x59, 0xb5, 0xf5, 0xce, 0xfc, 0x31,
0x6b, 0x92, 0x5f, 0xb3, 0x26, 0xf9, 0x3d, 0x6b, 0x92, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf8,
0xb0, 0xae, 0x4e, 0xfc, 0x04, 0x00, 0x00,
}

View File

@ -1,6 +1,6 @@
syntax = "proto2";
package floodsub.pb;
package pubsub.pb;
message RPC {
repeated SubOpts subscriptions = 1;

View File

@ -1,4 +1,4 @@
package floodsub
package pubsub
import (
"context"
@ -8,7 +8,7 @@ import (
"sync/atomic"
"time"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
logging "github.com/ipfs/go-log"
crypto "github.com/libp2p/go-libp2p-crypto"

View File

@ -1,9 +1,9 @@
package floodsub
package pubsub
import (
"context"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
host "github.com/libp2p/go-libp2p-host"
peer "github.com/libp2p/go-libp2p-peer"

View File

@ -1,9 +1,9 @@
package floodsub
package pubsub
import (
"fmt"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
crypto "github.com/libp2p/go-libp2p-crypto"
peer "github.com/libp2p/go-libp2p-peer"

View File

@ -1,9 +1,9 @@
package floodsub
package pubsub
import (
"testing"
pb "github.com/libp2p/go-floodsub/pb"
pb "github.com/libp2p/go-libp2p-pubsub/pb"
crypto "github.com/libp2p/go-libp2p-crypto"
peer "github.com/libp2p/go-libp2p-peer"

View File

@ -1,4 +1,4 @@
package floodsub
package pubsub
import (
"context"