Documentation ¶
Index ¶
- Variables
- func Marshal[T pressure](x T) []byte
- func Read[T pressure](r io.Reader, x T) (err error)
- type Chunk
- func (*Chunk) Descriptor() ([]byte, []int)deprecated
- func (x *Chunk) GetData() []byte
- func (x *Chunk) GetFilename() string
- func (x *Chunk) GetIndex() int32
- func (x *Chunk) GetLen() int32
- func (*Chunk) ProtoMessage()
- func (x *Chunk) ProtoReflect() protoreflect.Message
- func (x *Chunk) Reset()
- func (x *Chunk) String() string
- type ChunkRequest
- type Index
- func (*Index) Descriptor() ([]byte, []int)deprecated
- func (x *Index) GetFilename() string
- func (x *Index) GetNChunks() int32
- func (x *Index) GetProgress() int32
- func (*Index) ProtoMessage()
- func (x *Index) ProtoReflect() protoreflect.Message
- func (x *Index) Reset()
- func (x *Index) Save()
- func (x *Index) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_pressure_pb_pressure_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Chunk ¶
type Chunk struct { Len *int32 `protobuf:"varint,1,opt,name=len,proto3,oneof" json:"len,omitempty"` // No. of bytes of data in this chunk Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // Index of the chunk being sent Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Filename *string `protobuf:"bytes,4,opt,name=filename,proto3,oneof" json:"filename,omitempty"` // contains filtered or unexported fields }
func (*Chunk) Descriptor
deprecated
func (*Chunk) GetFilename ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) ProtoReflect ¶
func (x *Chunk) ProtoReflect() protoreflect.Message
type ChunkRequest ¶
type ChunkRequest struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // Index of the chunk that we want // contains filtered or unexported fields }
func (*ChunkRequest) Descriptor
deprecated
func (*ChunkRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChunkRequest.ProtoReflect.Descriptor instead.
func (*ChunkRequest) GetIndex ¶
func (x *ChunkRequest) GetIndex() int32
func (*ChunkRequest) ProtoMessage ¶
func (*ChunkRequest) ProtoMessage()
func (*ChunkRequest) ProtoReflect ¶
func (x *ChunkRequest) ProtoReflect() protoreflect.Message
func (*ChunkRequest) Reset ¶
func (x *ChunkRequest) Reset()
func (*ChunkRequest) String ¶
func (x *ChunkRequest) String() string
type Index ¶
type Index struct { NChunks int32 `protobuf:"varint,1,opt,name=n_chunks,json=nChunks,proto3" json:"n_chunks,omitempty"` // No. of chunks in the file Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` Progress int32 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress,omitempty"` // No. of chunks already received // contains filtered or unexported fields }
func (*Index) Descriptor
deprecated
func (*Index) GetFilename ¶
func (*Index) GetNChunks ¶
func (*Index) GetProgress ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) ProtoReflect ¶
func (x *Index) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.