protos

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package protos is a generated protocol buffer package.

It is generated from these files:

backup.proto
manifest.proto

It has these top-level messages:

KVPair
ManifestChangeSet
ManifestChange

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBackup = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBackup   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthManifest = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowManifest   = fmt.Errorf("proto: integer overflow")
)
View Source
var ManifestChange_Operation_name = map[int32]string{
	0: "CREATE",
	1: "DELETE",
}
View Source
var ManifestChange_Operation_value = map[string]int32{
	"CREATE": 0,
	"DELETE": 1,
}

Functions

This section is empty.

Types

type KVPair

type KVPair struct {
	Key       []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value     []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	UserMeta  []byte `protobuf:"bytes,3,opt,name=userMeta,proto3" json:"userMeta,omitempty"`
	Version   uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	ExpiresAt uint64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
}

func (*KVPair) Descriptor

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

func (*KVPair) GetExpiresAt added in v1.0.0

func (m *KVPair) GetExpiresAt() uint64

func (*KVPair) GetKey

func (m *KVPair) GetKey() []byte

func (*KVPair) GetUserMeta

func (m *KVPair) GetUserMeta() []byte

func (*KVPair) GetValue

func (m *KVPair) GetValue() []byte

func (*KVPair) GetVersion added in v0.9.0

func (m *KVPair) GetVersion() uint64

func (*KVPair) Marshal

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

func (*KVPair) MarshalTo

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

func (*KVPair) ProtoMessage

func (*KVPair) ProtoMessage()

func (*KVPair) Reset

func (m *KVPair) Reset()

func (*KVPair) Size

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

func (*KVPair) String

func (m *KVPair) String() string

func (*KVPair) Unmarshal

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

type ManifestChange

type ManifestChange struct {
	Id    uint64                   `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Op    ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=protos.ManifestChange_Operation" json:"Op,omitempty"`
	Level uint32                   `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"`
}

func (*ManifestChange) Descriptor

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

func (*ManifestChange) GetId

func (m *ManifestChange) GetId() uint64

func (*ManifestChange) GetLevel

func (m *ManifestChange) GetLevel() uint32

func (*ManifestChange) GetOp

func (*ManifestChange) Marshal

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

func (*ManifestChange) MarshalTo

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

func (*ManifestChange) ProtoMessage

func (*ManifestChange) ProtoMessage()

func (*ManifestChange) Reset

func (m *ManifestChange) Reset()

func (*ManifestChange) Size

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

func (*ManifestChange) String

func (m *ManifestChange) String() string

func (*ManifestChange) Unmarshal

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

type ManifestChangeSet

type ManifestChangeSet struct {
	// A set of changes that are applied atomically.
	Changes []*ManifestChange `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"`
}

func (*ManifestChangeSet) Descriptor

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

func (*ManifestChangeSet) GetChanges

func (m *ManifestChangeSet) GetChanges() []*ManifestChange

func (*ManifestChangeSet) Marshal

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

func (*ManifestChangeSet) MarshalTo

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

func (*ManifestChangeSet) ProtoMessage

func (*ManifestChangeSet) ProtoMessage()

func (*ManifestChangeSet) Reset

func (m *ManifestChangeSet) Reset()

func (*ManifestChangeSet) Size

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

func (*ManifestChangeSet) String

func (m *ManifestChangeSet) String() string

func (*ManifestChangeSet) Unmarshal

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

type ManifestChange_Operation

type ManifestChange_Operation int32
const (
	ManifestChange_CREATE ManifestChange_Operation = 0
	ManifestChange_DELETE ManifestChange_Operation = 1
)

func (ManifestChange_Operation) EnumDescriptor

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

func (ManifestChange_Operation) String

func (x ManifestChange_Operation) String() string

Jump to

Keyboard shortcuts

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