Documentation ¶
Overview ¶
Package msg is a generated protocol buffer package.
It is generated from these files:
msg/transfer.proto
It has these top-level messages:
Transfer SendInit RecvInit SendPartial AskPartial Error
Index ¶
- type AskPartial
- type Error
- type RecvInit
- type SendInit
- type SendPartial
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)
- func (m *Transfer) GetAskPartial() *AskPartial
- func (m *Transfer) GetRecvInit() *RecvInit
- func (m *Transfer) GetSendInit() *SendInit
- func (m *Transfer) GetSendPartial() *SendPartial
- func (m *Transfer) GetStatus() *Error
- func (*Transfer) ProtoMessage()
- func (m *Transfer) Reset()
- func (m *Transfer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AskPartial ¶
type AskPartial struct { Index []uint32 `protobuf:"varint,1,rep,name=index" json:"index,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*AskPartial) Descriptor ¶
func (*AskPartial) Descriptor() ([]byte, []int)
func (*AskPartial) GetIndex ¶
func (m *AskPartial) GetIndex() []uint32
func (*AskPartial) ProtoMessage ¶
func (*AskPartial) ProtoMessage()
func (*AskPartial) Reset ¶
func (m *AskPartial) Reset()
func (*AskPartial) String ¶
func (m *AskPartial) String() string
type Error ¶
type Error struct { Code *uint32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type RecvInit ¶
type RecvInit struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Total *uint32 `protobuf:"varint,2,req,name=total" json:"total,omitempty"` Block *uint32 `protobuf:"varint,3,req,name=block" json:"block,omitempty"` Cnt *uint32 `protobuf:"varint,4,req,name=cnt" json:"cnt,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RecvInit) Descriptor ¶
func (*RecvInit) ProtoMessage ¶
func (*RecvInit) ProtoMessage()
type SendInit ¶
type SendInit struct { Total *uint32 `protobuf:"varint,1,req,name=total" json:"total,omitempty"` Block *uint32 `protobuf:"varint,2,req,name=block" json:"block,omitempty"` Cnt *uint32 `protobuf:"varint,3,req,name=cnt" json:"cnt,omitempty"` Name *string `protobuf:"bytes,4,req,name=name" json:"name,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SendInit) Descriptor ¶
func (*SendInit) ProtoMessage ¶
func (*SendInit) ProtoMessage()
type SendPartial ¶
type SendPartial struct { Index *uint32 `protobuf:"varint,1,req,name=index" json:"index,omitempty"` Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"` Checksum []byte `protobuf:"bytes,3,req,name=checksum" json:"checksum,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SendPartial) Descriptor ¶
func (*SendPartial) Descriptor() ([]byte, []int)
func (*SendPartial) GetChecksum ¶
func (m *SendPartial) GetChecksum() []byte
func (*SendPartial) GetData ¶
func (m *SendPartial) GetData() []byte
func (*SendPartial) GetIndex ¶
func (m *SendPartial) GetIndex() uint32
func (*SendPartial) ProtoMessage ¶
func (*SendPartial) ProtoMessage()
func (*SendPartial) Reset ¶
func (m *SendPartial) Reset()
func (*SendPartial) String ¶
func (m *SendPartial) String() string
type Transfer ¶
type Transfer struct { SendInit *SendInit `protobuf:"bytes,1,opt,name=send_init" json:"send_init,omitempty"` RecvInit *RecvInit `protobuf:"bytes,2,opt,name=recv_init" json:"recv_init,omitempty"` SendPartial *SendPartial `protobuf:"bytes,3,opt,name=send_partial" json:"send_partial,omitempty"` AskPartial *AskPartial `protobuf:"bytes,4,opt,name=ask_partial" json:"ask_partial,omitempty"` Status *Error `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Transfer) Descriptor ¶
func (*Transfer) GetAskPartial ¶
func (m *Transfer) GetAskPartial() *AskPartial
func (*Transfer) GetRecvInit ¶
func (*Transfer) GetSendInit ¶
func (*Transfer) GetSendPartial ¶
func (m *Transfer) GetSendPartial() *SendPartial
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.