proto

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

serializations.proto

It has these top-level messages:

LogDelta
HistoryEntry
NodeData

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSerializations = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSerializations   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type HistoryEntry

type HistoryEntry struct {
	History []uint64 `protobuf:"varint,1,rep,name=History,json=history" json:"History,omitempty"`
}

func (*HistoryEntry) Descriptor added in v0.6.1

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

func (*HistoryEntry) Marshal

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

func (*HistoryEntry) MarshalTo

func (m *HistoryEntry) MarshalTo(data []byte) (int, error)

func (*HistoryEntry) ProtoMessage

func (*HistoryEntry) ProtoMessage()

func (*HistoryEntry) ProtoSize added in v0.6.0

func (m *HistoryEntry) ProtoSize() (n int)

func (*HistoryEntry) Reset

func (m *HistoryEntry) Reset()

func (*HistoryEntry) String

func (m *HistoryEntry) String() string

func (*HistoryEntry) Unmarshal

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

type LogDelta

type LogDelta struct {
	ID        uint64       `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
	Quad      *pquads.Quad `protobuf:"bytes,2,opt,name=Quad,json=quad" json:"Quad,omitempty"`
	Action    int32        `protobuf:"varint,3,opt,name=Action,json=action,proto3" json:"Action,omitempty"`
	Timestamp int64        `protobuf:"varint,4,opt,name=Timestamp,json=timestamp,proto3" json:"Timestamp,omitempty"`
}

func (*LogDelta) Descriptor added in v0.6.1

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

func (*LogDelta) GetQuad

func (m *LogDelta) GetQuad() *pquads.Quad

func (*LogDelta) Marshal

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

func (*LogDelta) MarshalTo

func (m *LogDelta) MarshalTo(data []byte) (int, error)

func (*LogDelta) ProtoMessage

func (*LogDelta) ProtoMessage()

func (*LogDelta) ProtoSize added in v0.6.0

func (m *LogDelta) ProtoSize() (n int)

func (*LogDelta) Reset

func (m *LogDelta) Reset()

func (*LogDelta) String

func (m *LogDelta) String() string

func (*LogDelta) Unmarshal

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

type NodeData

type NodeData struct {
	Name  string        `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	Size  int64         `protobuf:"varint,2,opt,name=Size,json=size,proto3" json:"Size,omitempty"`
	Value *pquads.Value `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
}

func (*NodeData) Descriptor added in v0.6.1

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

func (*NodeData) GetNativeValue added in v0.6.0

func (m *NodeData) GetNativeValue() quad.Value

GetNativeValue returns the value stored in Node.

func (*NodeData) GetValue added in v0.6.0

func (m *NodeData) GetValue() *pquads.Value

func (*NodeData) Marshal

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

func (*NodeData) MarshalTo

func (m *NodeData) MarshalTo(data []byte) (int, error)

func (*NodeData) ProtoMessage

func (*NodeData) ProtoMessage()

func (*NodeData) ProtoSize added in v0.6.0

func (m *NodeData) ProtoSize() (n int)

func (*NodeData) Reset

func (m *NodeData) Reset()

func (*NodeData) String

func (m *NodeData) String() string

func (*NodeData) Unmarshal

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

func (*NodeData) Upgrade added in v0.6.0

func (m *NodeData) Upgrade()

Jump to

Keyboard shortcuts

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