Documentation
¶
Index ¶
- Variables
- type ID
- func (*ID) Descriptor() ([]byte, []int)
- func (this *ID) Equal(that interface{}) bool
- func (m *ID) GetHashAlg() pb.HashAlg
- func (this *ID) GoString() string
- func (m *ID) Marshal() (dAtA []byte, err error)
- func (id ID) MarshalText() ([]byte, error)
- func (m *ID) MarshalTo(dAtA []byte) (int, error)
- func (m *ID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ID) ProtoMessage()
- func (m *ID) Reset()
- func (m *ID) Size() (n int)
- func (id ID) String() string
- func (m *ID) Unmarshal(dAtA []byte) error
- func (id *ID) UnmarshalText(bs []byte) error
- func (this *ID) VerboseEqual(that interface{}) error
- func (m *ID) XXX_DiscardUnknown()
- func (m *ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ID) XXX_Merge(src proto.Message)
- func (m *ID) XXX_Size() int
- func (m *ID) XXX_Unmarshal(b []byte) error
- type Manifest
- func (*Manifest) Descriptor() ([]byte, []int)
- func (this *Manifest) Equal(that interface{}) bool
- func (m *Manifest) GetChunks() []ManifestChunk
- func (m *Manifest) GetTotalSize() uint64
- func (this *Manifest) GoString() string
- func (m *Manifest) Marshal() (dAtA []byte, err error)
- func (m *Manifest) MarshalTo(dAtA []byte) (int, error)
- func (m *Manifest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Manifest) ProtoMessage()
- func (m *Manifest) Reset()
- func (m *Manifest) Size() (n int)
- func (this *Manifest) String() string
- func (m *Manifest) Unmarshal(dAtA []byte) error
- func (this *Manifest) VerboseEqual(that interface{}) error
- func (m *Manifest) XXX_DiscardUnknown()
- func (m *Manifest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Manifest) XXX_Merge(src proto.Message)
- func (m *Manifest) XXX_Size() int
- func (m *Manifest) XXX_Unmarshal(b []byte) error
- type ManifestChunk
- func (*ManifestChunk) Descriptor() ([]byte, []int)
- func (this *ManifestChunk) Equal(that interface{}) bool
- func (m *ManifestChunk) GetRange() pb.Range
- func (this *ManifestChunk) GoString() string
- func (m *ManifestChunk) Marshal() (dAtA []byte, err error)
- func (m *ManifestChunk) MarshalTo(dAtA []byte) (int, error)
- func (m *ManifestChunk) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ManifestChunk) ProtoMessage()
- func (m *ManifestChunk) Reset()
- func (m *ManifestChunk) Size() (n int)
- func (this *ManifestChunk) String() string
- func (m *ManifestChunk) Unmarshal(dAtA []byte) error
- func (this *ManifestChunk) VerboseEqual(that interface{}) error
- func (m *ManifestChunk) XXX_DiscardUnknown()
- func (m *ManifestChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManifestChunk) XXX_Merge(src proto.Message)
- func (m *ManifestChunk) XXX_Size() int
- func (m *ManifestChunk) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct { HashAlg pb.HashAlg `protobuf:"varint,1,opt,name=hashAlg,proto3,enum=Redwood.types.HashAlg" json:"hashAlg,omitempty" tree:"hashAlg"` Hash redwood_dev_types.Hash `protobuf:"bytes,2,opt,name=hash,proto3,customtype=redwood.dev/types.Hash" json:"hash" tree:"hash"` }
func NewPopulatedID ¶
func (*ID) Descriptor ¶
func (*ID) GetHashAlg ¶
func (ID) MarshalText ¶
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) UnmarshalText ¶
func (*ID) VerboseEqual ¶
func (*ID) XXX_DiscardUnknown ¶
func (m *ID) XXX_DiscardUnknown()
func (*ID) XXX_Unmarshal ¶
type Manifest ¶
type Manifest struct { TotalSize uint64 `protobuf:"varint,1,opt,name=totalSize,proto3" json:"totalSize,omitempty" tree:"totalSize"` Chunks []ManifestChunk `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks" tree:"chunks"` }
func NewPopulatedManifest ¶
func (*Manifest) Descriptor ¶
func (*Manifest) GetChunks ¶
func (m *Manifest) GetChunks() []ManifestChunk
func (*Manifest) GetTotalSize ¶
func (*Manifest) MarshalToSizedBuffer ¶
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) VerboseEqual ¶
func (*Manifest) XXX_DiscardUnknown ¶
func (m *Manifest) XXX_DiscardUnknown()
func (*Manifest) XXX_Marshal ¶
func (*Manifest) XXX_Unmarshal ¶
type ManifestChunk ¶
type ManifestChunk struct { SHA3 redwood_dev_types.Hash `protobuf:"bytes,1,opt,name=sha3,proto3,customtype=redwood.dev/types.Hash" json:"sha3" tree:"sha3"` Range pb.Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range" tree:"range"` }
func NewPopulatedManifestChunk ¶
func NewPopulatedManifestChunk(r randyBlob, easy bool) *ManifestChunk
func (*ManifestChunk) Descriptor ¶
func (*ManifestChunk) Descriptor() ([]byte, []int)
func (*ManifestChunk) Equal ¶
func (this *ManifestChunk) Equal(that interface{}) bool
func (*ManifestChunk) GetRange ¶
func (m *ManifestChunk) GetRange() pb.Range
func (*ManifestChunk) GoString ¶
func (this *ManifestChunk) GoString() string
func (*ManifestChunk) Marshal ¶
func (m *ManifestChunk) Marshal() (dAtA []byte, err error)
func (*ManifestChunk) MarshalToSizedBuffer ¶
func (m *ManifestChunk) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ManifestChunk) ProtoMessage ¶
func (*ManifestChunk) ProtoMessage()
func (*ManifestChunk) Reset ¶
func (m *ManifestChunk) Reset()
func (*ManifestChunk) Size ¶
func (m *ManifestChunk) Size() (n int)
func (*ManifestChunk) String ¶
func (this *ManifestChunk) String() string
func (*ManifestChunk) Unmarshal ¶
func (m *ManifestChunk) Unmarshal(dAtA []byte) error
func (*ManifestChunk) VerboseEqual ¶
func (this *ManifestChunk) VerboseEqual(that interface{}) error
func (*ManifestChunk) XXX_DiscardUnknown ¶
func (m *ManifestChunk) XXX_DiscardUnknown()
func (*ManifestChunk) XXX_Marshal ¶
func (m *ManifestChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManifestChunk) XXX_Merge ¶
func (m *ManifestChunk) XXX_Merge(src proto.Message)
func (*ManifestChunk) XXX_Size ¶
func (m *ManifestChunk) XXX_Size() int
func (*ManifestChunk) XXX_Unmarshal ¶
func (m *ManifestChunk) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.