Documentation
¶
Index ¶
- Variables
- type FileChunk
- func (*FileChunk) Descriptor() ([]byte, []int)
- func (m *FileChunk) GetData() []byte
- func (m *FileChunk) GetFileName() string
- func (m *FileChunk) Marshal() (dAtA []byte, err error)
- func (m *FileChunk) MarshalTo(dAtA []byte) (int, error)
- func (*FileChunk) ProtoMessage()
- func (m *FileChunk) Reset()
- func (m *FileChunk) Size() (n int)
- func (m *FileChunk) String() string
- func (m *FileChunk) Unmarshal(dAtA []byte) error
- func (m *FileChunk) XXX_DiscardUnknown()
- func (m *FileChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FileChunk) XXX_Merge(src proto.Message)
- func (m *FileChunk) XXX_Size() int
- func (m *FileChunk) XXX_Unmarshal(b []byte) error
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)
- func (m *FileInfo) GetHash() []byte
- func (m *FileInfo) Marshal() (dAtA []byte, err error)
- func (m *FileInfo) MarshalTo(dAtA []byte) (int, error)
- func (*FileInfo) ProtoMessage()
- func (m *FileInfo) Reset()
- func (m *FileInfo) Size() (n int)
- func (m *FileInfo) String() string
- func (m *FileInfo) Unmarshal(dAtA []byte) error
- func (m *FileInfo) XXX_DiscardUnknown()
- func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FileInfo) XXX_Merge(src proto.Message)
- func (m *FileInfo) XXX_Size() int
- func (m *FileInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthStorage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStorage = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type FileChunk ¶
type FileChunk struct {
// file name is required only on first message.
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,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 (*FileChunk) Descriptor ¶
func (*FileChunk) GetFileName ¶
func (*FileChunk) ProtoMessage ¶
func (*FileChunk) ProtoMessage()
func (*FileChunk) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *FileChunk) XXX_DiscardUnknown()
func (*FileChunk) XXX_Marshal ¶ added in v0.2.0
func (*FileChunk) XXX_Unmarshal ¶ added in v0.2.0
type FileInfo ¶
type FileInfo struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*FileInfo) Descriptor ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *FileInfo) XXX_DiscardUnknown()
func (*FileInfo) XXX_Marshal ¶ added in v0.2.0
func (*FileInfo) XXX_Unmarshal ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.