bitswap_message_pb

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bitswap_message_pb is a generated protocol buffer package.

It is generated from these files:

message.proto

It has these top-level messages:

Message

Index

Constants

This section is empty.

Variables

This section is empty.

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_unrecognized []byte            `json:"-"`
}

func (*Message) GetBlocks

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

func (*Message) GetPayload added in v0.4.5

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

func (*Message) GetWantlist

func (m *Message) GetWantlist() *Message_Wantlist

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type Message_Block added in v0.4.5

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

func (*Message_Block) GetData added in v0.4.5

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

func (*Message_Block) GetPrefix added in v0.4.5

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

func (*Message_Block) ProtoMessage added in v0.4.5

func (*Message_Block) ProtoMessage()

func (*Message_Block) Reset added in v0.4.5

func (m *Message_Block) Reset()

func (*Message_Block) String added in v0.4.5

func (m *Message_Block) String() string

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" json:"full,omitempty"`
	XXX_unrecognized []byte                    `json:"-"`
}

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) ProtoMessage

func (*Message_Wantlist) ProtoMessage()

func (*Message_Wantlist) Reset

func (m *Message_Wantlist) Reset()

func (*Message_Wantlist) String

func (m *Message_Wantlist) String() string

type Message_Wantlist_Entry

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

func (*Message_Wantlist_Entry) GetBlock

func (m *Message_Wantlist_Entry) GetBlock() string

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) ProtoMessage

func (*Message_Wantlist_Entry) ProtoMessage()

func (*Message_Wantlist_Entry) Reset

func (m *Message_Wantlist_Entry) Reset()

func (*Message_Wantlist_Entry) String

func (m *Message_Wantlist_Entry) String() string

Jump to

Keyboard shortcuts

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