pb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*FileChunk) GetData

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

func (*FileChunk) GetFileName

func (m *FileChunk) GetFileName() string

func (*FileChunk) Marshal

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

func (*FileChunk) MarshalTo

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

func (*FileChunk) ProtoMessage

func (*FileChunk) ProtoMessage()

func (*FileChunk) Reset

func (m *FileChunk) Reset()

func (*FileChunk) Size

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

func (*FileChunk) String

func (m *FileChunk) String() string

func (*FileChunk) Unmarshal

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

func (*FileChunk) XXX_DiscardUnknown added in v0.2.0

func (m *FileChunk) XXX_DiscardUnknown()

func (*FileChunk) XXX_Marshal added in v0.2.0

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

func (*FileChunk) XXX_Merge added in v0.2.0

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

func (*FileChunk) XXX_Size added in v0.2.0

func (m *FileChunk) XXX_Size() int

func (*FileChunk) XXX_Unmarshal added in v0.2.0

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

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) Descriptor() ([]byte, []int)

func (*FileInfo) GetHash

func (m *FileInfo) GetHash() []byte

func (*FileInfo) Marshal

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

func (*FileInfo) MarshalTo

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

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) Size

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

func (*FileInfo) String

func (m *FileInfo) String() string

func (*FileInfo) Unmarshal

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

func (*FileInfo) XXX_DiscardUnknown added in v0.2.0

func (m *FileInfo) XXX_DiscardUnknown()

func (*FileInfo) XXX_Marshal added in v0.2.0

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

func (*FileInfo) XXX_Merge added in v0.2.0

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

func (*FileInfo) XXX_Size added in v0.2.0

func (m *FileInfo) XXX_Size() int

func (*FileInfo) XXX_Unmarshal added in v0.2.0

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

Jump to

Keyboard shortcuts

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