bitswap_message_pb

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Message

type Message struct {
	Wantlist             *Message_Wantlist `protobuf:"bytes,1,opt,name=wantlist" json:"wantlist,omitempty"`
	Blocks               [][]byte          `protobuf:"bytes,2,rep,name=blocks" json:"blocks,omitempty"`
	Payload              []*Message_Block  `protobuf:"bytes,3,rep,name=payload" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Message) Descriptor added in v1.0.5

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetBlocks

func (m *Message) GetBlocks() [][]byte

func (*Message) GetPayload

func (m *Message) GetPayload() []*Message_Block

func (*Message) GetWantlist

func (m *Message) GetWantlist() *Message_Wantlist

func (*Message) Marshal added in v1.0.5

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo added in v1.0.5

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size added in v1.0.5

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal added in v1.0.5

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown added in v1.0.5

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal added in v1.0.5

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge added in v1.0.5

func (dst *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size added in v1.0.5

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal added in v1.0.5

func (m *Message) XXX_Unmarshal(b []byte) error

type Message_Block

type Message_Block struct {
	Prefix               []byte   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message_Block) Descriptor added in v1.0.5

func (*Message_Block) Descriptor() ([]byte, []int)

func (*Message_Block) GetData

func (m *Message_Block) GetData() []byte

func (*Message_Block) GetPrefix

func (m *Message_Block) GetPrefix() []byte

func (*Message_Block) Marshal added in v1.0.5

func (m *Message_Block) Marshal() (dAtA []byte, err error)

func (*Message_Block) MarshalTo added in v1.0.5

func (m *Message_Block) MarshalTo(dAtA []byte) (int, error)

func (*Message_Block) ProtoMessage

func (*Message_Block) ProtoMessage()

func (*Message_Block) Reset

func (m *Message_Block) Reset()

func (*Message_Block) Size added in v1.0.5

func (m *Message_Block) Size() (n int)

func (*Message_Block) String

func (m *Message_Block) String() string

func (*Message_Block) Unmarshal added in v1.0.5

func (m *Message_Block) Unmarshal(dAtA []byte) error

func (*Message_Block) XXX_DiscardUnknown added in v1.0.5

func (m *Message_Block) XXX_DiscardUnknown()

func (*Message_Block) XXX_Marshal added in v1.0.5

func (m *Message_Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_Block) XXX_Merge added in v1.0.5

func (dst *Message_Block) XXX_Merge(src proto.Message)

func (*Message_Block) XXX_Size added in v1.0.5

func (m *Message_Block) XXX_Size() int

func (*Message_Block) XXX_Unmarshal added in v1.0.5

func (m *Message_Block) XXX_Unmarshal(b []byte) error

type Message_Wantlist

type Message_Wantlist struct {
	Entries              []*Message_Wantlist_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
	Full                 bool                      `protobuf:"varint,2,opt,name=full,proto3" json:"full,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*Message_Wantlist) Descriptor added in v1.0.5

func (*Message_Wantlist) Descriptor() ([]byte, []int)

func (*Message_Wantlist) GetEntries

func (m *Message_Wantlist) GetEntries() []*Message_Wantlist_Entry

func (*Message_Wantlist) GetFull

func (m *Message_Wantlist) GetFull() bool

func (*Message_Wantlist) Marshal added in v1.0.5

func (m *Message_Wantlist) Marshal() (dAtA []byte, err error)

func (*Message_Wantlist) MarshalTo added in v1.0.5

func (m *Message_Wantlist) MarshalTo(dAtA []byte) (int, error)

func (*Message_Wantlist) ProtoMessage

func (*Message_Wantlist) ProtoMessage()

func (*Message_Wantlist) Reset

func (m *Message_Wantlist) Reset()

func (*Message_Wantlist) Size added in v1.0.5

func (m *Message_Wantlist) Size() (n int)

func (*Message_Wantlist) String

func (m *Message_Wantlist) String() string

func (*Message_Wantlist) Unmarshal added in v1.0.5

func (m *Message_Wantlist) Unmarshal(dAtA []byte) error

func (*Message_Wantlist) XXX_DiscardUnknown added in v1.0.5

func (m *Message_Wantlist) XXX_DiscardUnknown()

func (*Message_Wantlist) XXX_Marshal added in v1.0.5

func (m *Message_Wantlist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_Wantlist) XXX_Merge added in v1.0.5

func (dst *Message_Wantlist) XXX_Merge(src proto.Message)

func (*Message_Wantlist) XXX_Size added in v1.0.5

func (m *Message_Wantlist) XXX_Size() int

func (*Message_Wantlist) XXX_Unmarshal added in v1.0.5

func (m *Message_Wantlist) XXX_Unmarshal(b []byte) error

type Message_Wantlist_Entry

type Message_Wantlist_Entry struct {
	Block                []byte   `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Priority             int32    `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	Cancel               bool     `protobuf:"varint,3,opt,name=cancel,proto3" json:"cancel,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message_Wantlist_Entry) Descriptor added in v1.0.5

func (*Message_Wantlist_Entry) Descriptor() ([]byte, []int)

func (*Message_Wantlist_Entry) GetBlock

func (m *Message_Wantlist_Entry) GetBlock() []byte

func (*Message_Wantlist_Entry) GetCancel

func (m *Message_Wantlist_Entry) GetCancel() bool

func (*Message_Wantlist_Entry) GetPriority

func (m *Message_Wantlist_Entry) GetPriority() int32

func (*Message_Wantlist_Entry) Marshal added in v1.0.5

func (m *Message_Wantlist_Entry) Marshal() (dAtA []byte, err error)

func (*Message_Wantlist_Entry) MarshalTo added in v1.0.5

func (m *Message_Wantlist_Entry) MarshalTo(dAtA []byte) (int, error)

func (*Message_Wantlist_Entry) ProtoMessage

func (*Message_Wantlist_Entry) ProtoMessage()

func (*Message_Wantlist_Entry) Reset

func (m *Message_Wantlist_Entry) Reset()

func (*Message_Wantlist_Entry) Size added in v1.0.5

func (m *Message_Wantlist_Entry) Size() (n int)

func (*Message_Wantlist_Entry) String

func (m *Message_Wantlist_Entry) String() string

func (*Message_Wantlist_Entry) Unmarshal added in v1.0.5

func (m *Message_Wantlist_Entry) Unmarshal(dAtA []byte) error

func (*Message_Wantlist_Entry) XXX_DiscardUnknown added in v1.0.5

func (m *Message_Wantlist_Entry) XXX_DiscardUnknown()

func (*Message_Wantlist_Entry) XXX_Marshal added in v1.0.5

func (m *Message_Wantlist_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_Wantlist_Entry) XXX_Merge added in v1.0.5

func (dst *Message_Wantlist_Entry) XXX_Merge(src proto.Message)

func (*Message_Wantlist_Entry) XXX_Size added in v1.0.5

func (m *Message_Wantlist_Entry) XXX_Size() int

func (*Message_Wantlist_Entry) XXX_Unmarshal added in v1.0.5

func (m *Message_Wantlist_Entry) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL