storagepb

package
v2.1.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storagepb is a generated protocol buffer package.

It is generated from these files:

kv.proto

It has these top-level messages:

KeyValue
Event

Index

Constants

This section is empty.

Variables

View Source
var Event_EventType_name = map[int32]string{
	0: "PUT",
	1: "DELETE",
	2: "EXPIRE",
}
View Source
var Event_EventType_value = map[string]int32{
	"PUT":    0,
	"DELETE": 1,
	"EXPIRE": 2,
}

Functions

This section is empty.

Types

type Event

type Event struct {
	Type Event_EventType `protobuf:"varint,1,opt,name=type,enum=storagepb.Event_EventType" json:"type"`
	// a put event contains the current key-value
	// a delete/expire event contains the previous
	// key-value
	Kv               KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*Event) Marshal

func (m *Event) Marshal() (data []byte, err error)

func (*Event) MarshalTo

func (m *Event) MarshalTo(data []byte) (n int, err error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

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

func (*Event) String

func (m *Event) String() string

func (*Event) Unmarshal

func (m *Event) Unmarshal(data []byte) error

type Event_EventType

type Event_EventType int32
const (
	PUT    Event_EventType = 0
	DELETE Event_EventType = 1
	EXPIRE Event_EventType = 2
)

func (Event_EventType) Enum

func (x Event_EventType) Enum() *Event_EventType

func (Event_EventType) String

func (x Event_EventType) String() string

func (*Event_EventType) UnmarshalJSON

func (x *Event_EventType) UnmarshalJSON(data []byte) error

type KeyValue

type KeyValue struct {
	Key []byte `protobuf:"bytes,1,opt,name=key" json:"key"`
	// mod_index is the last modified index of the key.
	CreateIndex int64 `protobuf:"varint,2,opt,name=create_index" json:"create_index"`
	ModIndex    int64 `protobuf:"varint,3,opt,name=mod_index" json:"mod_index"`
	// version is the version of the key. A deletion resets
	// the version to zero and any modification of the key
	// increases its version.
	Version          int64  `protobuf:"varint,4,opt,name=version" json:"version"`
	Value            []byte `protobuf:"bytes,5,opt,name=value" json:"value"`
	XXX_unrecognized []byte `json:"-"`
}

func (*KeyValue) Marshal

func (m *KeyValue) Marshal() (data []byte, err error)

func (*KeyValue) MarshalTo

func (m *KeyValue) MarshalTo(data []byte) (n int, err error)

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset

func (m *KeyValue) Reset()

func (*KeyValue) Size

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

func (*KeyValue) String

func (m *KeyValue) String() string

func (*KeyValue) Unmarshal

func (m *KeyValue) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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