mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 03:47:45 +08:00
Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap * Delineates the difference between the generic exchange interface and implementations (eg. BitSwap protocol) Thus, the bitswap protocol can be refined without having to overthink how future exchanges will work. Aspects common to BitSwap and other exchanges can be extracted out to the exchange package in piecemeal. Future exchange implementations can be placed in sibling packages next to exchange/bitswap. (eg. exchange/multilateral)
49 lines
1.1 KiB
Go
49 lines
1.1 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: message.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package bitswap is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
message.proto
|
|
|
|
It has these top-level messages:
|
|
PBMessage
|
|
*/
|
|
package message
|
|
|
|
import proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = math.Inf
|
|
|
|
type PBMessage struct {
|
|
Wantlist []string `protobuf:"bytes,1,rep,name=wantlist" json:"wantlist,omitempty"`
|
|
Blocks [][]byte `protobuf:"bytes,2,rep,name=blocks" json:"blocks,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *PBMessage) Reset() { *m = PBMessage{} }
|
|
func (m *PBMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*PBMessage) ProtoMessage() {}
|
|
|
|
func (m *PBMessage) GetWantlist() []string {
|
|
if m != nil {
|
|
return m.Wantlist
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PBMessage) GetBlocks() [][]byte {
|
|
if m != nil {
|
|
return m.Blocks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
}
|