pb

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBlob        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBlob          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBlob = fmt.Errorf("proto: unexpected end of group")
)

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 NewPopulatedID(r randyBlob, easy bool) *ID

func (*ID) Descriptor

func (*ID) Descriptor() ([]byte, []int)

func (*ID) Equal

func (this *ID) Equal(that interface{}) bool

func (*ID) GetHashAlg

func (m *ID) GetHashAlg() pb.HashAlg

func (*ID) GoString

func (this *ID) GoString() string

func (*ID) Marshal

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

func (ID) MarshalText

func (id ID) MarshalText() ([]byte, error)

func (*ID) MarshalTo

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

func (*ID) MarshalToSizedBuffer

func (m *ID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) Size

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

func (ID) String

func (id ID) String() string

func (*ID) Unmarshal

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

func (*ID) UnmarshalText

func (id *ID) UnmarshalText(bs []byte) error

func (*ID) VerboseEqual

func (this *ID) VerboseEqual(that interface{}) error

func (*ID) XXX_DiscardUnknown

func (m *ID) XXX_DiscardUnknown()

func (*ID) XXX_Marshal

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

func (*ID) XXX_Merge

func (m *ID) XXX_Merge(src proto.Message)

func (*ID) XXX_Size

func (m *ID) XXX_Size() int

func (*ID) XXX_Unmarshal

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

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 NewPopulatedManifest(r randyBlob, easy bool) *Manifest

func (*Manifest) Descriptor

func (*Manifest) Descriptor() ([]byte, []int)

func (*Manifest) Equal

func (this *Manifest) Equal(that interface{}) bool

func (*Manifest) GetChunks

func (m *Manifest) GetChunks() []ManifestChunk

func (*Manifest) GetTotalSize

func (m *Manifest) GetTotalSize() uint64

func (*Manifest) GoString

func (this *Manifest) GoString() string

func (*Manifest) Marshal

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

func (*Manifest) MarshalTo

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

func (*Manifest) MarshalToSizedBuffer

func (m *Manifest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Manifest) ProtoMessage

func (*Manifest) ProtoMessage()

func (*Manifest) Reset

func (m *Manifest) Reset()

func (*Manifest) Size

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

func (*Manifest) String

func (this *Manifest) String() string

func (*Manifest) Unmarshal

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

func (*Manifest) VerboseEqual

func (this *Manifest) VerboseEqual(that interface{}) error

func (*Manifest) XXX_DiscardUnknown

func (m *Manifest) XXX_DiscardUnknown()

func (*Manifest) XXX_Marshal

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

func (*Manifest) XXX_Merge

func (m *Manifest) XXX_Merge(src proto.Message)

func (*Manifest) XXX_Size

func (m *Manifest) XXX_Size() int

func (*Manifest) XXX_Unmarshal

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

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) MarshalTo

func (m *ManifestChunk) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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