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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ErrInvalidRange = errors.New("invalid range")
View Source
var HashAlg_name = map[int32]string{
	0: "Unknown",
	1: "SHA1",
	2: "SHA3",
}
View Source
var HashAlg_value = map[string]int32{
	"Unknown": 0,
	"SHA1":    1,
	"SHA3":    2,
}

Functions

This section is empty.

Types

type HashAlg

type HashAlg int32
const (
	HashAlgUnknown HashAlg = 0
	SHA1           HashAlg = 1
	SHA3           HashAlg = 2
)

func (HashAlg) EnumDescriptor

func (HashAlg) EnumDescriptor() ([]byte, []int)

func (HashAlg) MarshalJSON

func (alg HashAlg) MarshalJSON() ([]byte, error)

func (HashAlg) String

func (alg HashAlg) String() string

func (*HashAlg) UnmarshalJSON

func (alg *HashAlg) UnmarshalJSON(bs []byte) error

type Range

type Range struct {
	Start   uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start" tree:"start"`
	End     uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end" tree:"end"`
	Reverse bool   `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse" tree:"reverse"`
}

func NewPopulatedRange

func NewPopulatedRange(r randyTypes, easy bool) *Range

func (*Range) Descriptor

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

func (*Range) Equal

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

func (*Range) GetEnd

func (m *Range) GetEnd() uint64

func (*Range) GetReverse

func (m *Range) GetReverse() bool

func (*Range) GetStart

func (m *Range) GetStart() uint64

func (*Range) GoString

func (this *Range) GoString() string

func (Range) Intersection

func (rng Range) Intersection(other Range) (Range, bool)

func (Range) Length

func (rng Range) Length() uint64

func (*Range) Marshal

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

func (*Range) MarshalTo

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

func (*Range) MarshalToSizedBuffer

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

func (Range) NormalizedForLength

func (rng Range) NormalizedForLength(length uint64) Range

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) Reset

func (m *Range) Reset()

func (*Range) Size

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

func (*Range) String

func (this *Range) String() string

func (*Range) Unmarshal

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

func (*Range) VerboseEqual

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

func (*Range) XXX_DiscardUnknown

func (m *Range) XXX_DiscardUnknown()

func (*Range) XXX_Marshal

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

func (*Range) XXX_Merge

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

func (*Range) XXX_Size

func (m *Range) XXX_Size() int

func (*Range) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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