snappb

package
v0.0.0-...-16b87a0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSnap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSnap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSnap = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ShotData

type ShotData struct {
	Index                uint64   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Metadata             []byte   `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ShotData) Descriptor

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

func (*ShotData) GetData

func (m *ShotData) GetData() []byte

func (*ShotData) GetIndex

func (m *ShotData) GetIndex() uint64

func (*ShotData) GetMetadata

func (m *ShotData) GetMetadata() []byte

func (*ShotData) Marshal

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

func (*ShotData) MarshalTo

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

func (*ShotData) MarshalToSizedBuffer

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

func (*ShotData) ProtoMessage

func (*ShotData) ProtoMessage()

func (*ShotData) Reset

func (m *ShotData) Reset()

func (*ShotData) Size

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

func (*ShotData) String

func (m *ShotData) String() string

func (*ShotData) Unmarshal

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

func (*ShotData) XXX_DiscardUnknown

func (m *ShotData) XXX_DiscardUnknown()

func (*ShotData) XXX_Marshal

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

func (*ShotData) XXX_Merge

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

func (*ShotData) XXX_Size

func (m *ShotData) XXX_Size() int

func (*ShotData) XXX_Unmarshal

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

type Snapshot

type Snapshot struct {
	Crc                  uint32   `protobuf:"varint,1,opt,name=crc,proto3" json:"crc,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Snapshot) Descriptor

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

func (*Snapshot) GetCrc

func (m *Snapshot) GetCrc() uint32

func (*Snapshot) GetData

func (m *Snapshot) GetData() []byte

func (*Snapshot) Marshal

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

func (*Snapshot) MarshalTo

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

func (*Snapshot) MarshalToSizedBuffer

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

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) Size

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

func (*Snapshot) String

func (m *Snapshot) String() string

func (*Snapshot) Unmarshal

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

func (*Snapshot) XXX_DiscardUnknown

func (m *Snapshot) XXX_DiscardUnknown()

func (*Snapshot) XXX_Marshal

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

func (*Snapshot) XXX_Merge

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

func (*Snapshot) XXX_Size

func (m *Snapshot) XXX_Size() int

func (*Snapshot) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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