Documentation ¶
Index ¶
- Variables
- func NewReader(readStream ChunkReadStream) io.ReadCloser
- func NewWriter(responseStream ChunkWriteStream, packetSize int) io.WriteCloser
- type Chunk
- func (*Chunk) Descriptor() ([]byte, []int)
- func (m *Chunk) GetData() []byte
- func (m *Chunk) GetError() string
- func (m *Chunk) Marshal() (dAtA []byte, err error)
- func (m *Chunk) MarshalTo(dAtA []byte) (int, error)
- func (*Chunk) ProtoMessage()
- func (m *Chunk) Reset()
- func (m *Chunk) Size() (n int)
- func (m *Chunk) String() string
- func (m *Chunk) Unmarshal(dAtA []byte) error
- func (m *Chunk) XXX_DiscardUnknown()
- func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Chunk) XXX_Merge(src proto.Message)
- func (m *Chunk) XXX_Size() int
- func (m *Chunk) XXX_Unmarshal(b []byte) error
- type ChunkReadStream
- type ChunkWriteStream
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthChunk = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowChunk = fmt.Errorf("proto: integer overflow") )
Functions ¶
func NewReader ¶
func NewReader(readStream ChunkReadStream) io.ReadCloser
func NewWriter ¶
func NewWriter(responseStream ChunkWriteStream, packetSize int) io.WriteCloser
NewWriter returns a WriteCloser which will send data over the gRPC Stream
Types ¶
type Chunk ¶
type Chunk struct { Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Chunk) Descriptor ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) XXX_DiscardUnknown ¶
func (m *Chunk) XXX_DiscardUnknown()
func (*Chunk) XXX_Marshal ¶
func (*Chunk) XXX_Unmarshal ¶
type ChunkReadStream ¶
type ChunkWriteStream ¶
ChunkWriteStream represents a gRPC stream which can send Chunks
Click to show internal directories.
Click to hide internal directories.