Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
primitive.proto
It has these top-level messages:
Primitive
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 ¶
- Variables
- type HistoryEntry
- func (*HistoryEntry) Descriptor() ([]byte, []int)
- func (m *HistoryEntry) GetHistory() []uint64
- func (m *HistoryEntry) Marshal() (dAtA []byte, err error)
- func (m *HistoryEntry) MarshalTo(dAtA []byte) (int, error)
- func (*HistoryEntry) ProtoMessage()
- func (m *HistoryEntry) ProtoSize() (n int)
- func (m *HistoryEntry) Reset()
- func (m *HistoryEntry) String() string
- func (m *HistoryEntry) Unmarshal(dAtA []byte) error
- type LogDelta
- func (*LogDelta) Descriptor() ([]byte, []int)
- func (m *LogDelta) GetAction() int32
- func (m *LogDelta) GetID() uint64
- func (m *LogDelta) GetQuad() *pquads.Quad
- func (m *LogDelta) GetTimestamp() int64
- func (m *LogDelta) Marshal() (dAtA []byte, err error)
- func (m *LogDelta) MarshalTo(dAtA []byte) (int, error)
- func (*LogDelta) ProtoMessage()
- func (m *LogDelta) ProtoSize() (n int)
- func (m *LogDelta) Reset()
- func (m *LogDelta) String() string
- func (m *LogDelta) Unmarshal(dAtA []byte) error
- type NodeData
- func (*NodeData) Descriptor() ([]byte, []int)
- func (m *NodeData) GetName() string
- func (m *NodeData) GetNativeValue() quad.Value
- func (m *NodeData) GetSize() int64
- func (m *NodeData) GetValue() *pquads.Value
- func (m *NodeData) Marshal() (dAtA []byte, err error)
- func (m *NodeData) MarshalTo(dAtA []byte) (int, error)
- func (*NodeData) ProtoMessage()
- func (m *NodeData) ProtoSize() (n int)
- func (m *NodeData) Reset()
- func (m *NodeData) String() string
- func (m *NodeData) Unmarshal(dAtA []byte) error
- func (m *NodeData) Upgrade()
- type Primitive
- func (*Primitive) Descriptor() ([]byte, []int)
- func (m *Primitive) GetDeleted() bool
- func (p Primitive) GetDirection(d quad.Direction) uint64
- func (m *Primitive) GetID() uint64
- func (m *Primitive) GetLabel() uint64
- func (m *Primitive) GetObject() uint64
- func (m *Primitive) GetPredicate() uint64
- func (m *Primitive) GetReplaces() uint64
- func (m *Primitive) GetSubject() uint64
- func (m *Primitive) GetTimestamp() int64
- func (m *Primitive) GetValue() []byte
- func (p Primitive) IsNode() bool
- func (p *Primitive) IsSameLink(q *Primitive) bool
- func (p Primitive) Key() interface{}
- func (m *Primitive) Marshal() (dAtA []byte, err error)
- func (m *Primitive) MarshalTo(dAtA []byte) (int, error)
- func (*Primitive) ProtoMessage()
- func (m *Primitive) ProtoSize() (n int)
- func (m *Primitive) Reset()
- func (p *Primitive) SetDirection(d quad.Direction, v uint64)
- func (m *Primitive) String() string
- func (m *Primitive) Unmarshal(dAtA []byte) error
- type PrimitiveType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthPrimitive = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPrimitive = fmt.Errorf("proto: integer overflow") )
View Source
var ( ErrInvalidLengthSerializations = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSerializations = fmt.Errorf("proto: integer overflow") )
View Source
var PrimitiveType_name = map[int32]string{
0: "LINK",
1: "IRI",
2: "STRING",
3: "BNODE",
4: "TYPED_STR",
5: "LANG_STR",
6: "INT",
7: "FLOAT",
8: "BOOL",
9: "TIMESTAMP",
}
View Source
var PrimitiveType_value = map[string]int32{
"LINK": 0,
"IRI": 1,
"STRING": 2,
"BNODE": 3,
"TYPED_STR": 4,
"LANG_STR": 5,
"INT": 6,
"FLOAT": 7,
"BOOL": 8,
"TIMESTAMP": 9,
}
Functions ¶
This section is empty.
Types ¶
type HistoryEntry ¶
type HistoryEntry struct {
History []uint64 `protobuf:"varint,1,rep,packed,name=History,json=history" json:"History,omitempty"`
}
func (*HistoryEntry) Descriptor ¶ added in v0.6.1
func (*HistoryEntry) Descriptor() ([]byte, []int)
func (*HistoryEntry) GetHistory ¶ added in v0.7.0
func (m *HistoryEntry) GetHistory() []uint64
func (*HistoryEntry) Marshal ¶
func (m *HistoryEntry) Marshal() (dAtA []byte, err 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) GetTimestamp ¶ added in v0.7.0
func (*LogDelta) ProtoMessage ¶
func (*LogDelta) ProtoMessage()
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) GetNativeValue ¶ added in v0.6.0
GetNativeValue returns the value stored in Node.
func (*NodeData) ProtoMessage ¶
func (*NodeData) ProtoMessage()
type Primitive ¶ added in v0.7.0
type Primitive struct { ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` Subject uint64 `protobuf:"varint,2,opt,name=Subject,json=subject,proto3" json:"Subject,omitempty"` Predicate uint64 `protobuf:"varint,3,opt,name=Predicate,json=predicate,proto3" json:"Predicate,omitempty"` Object uint64 `protobuf:"varint,4,opt,name=Object,json=object,proto3" json:"Object,omitempty"` Label uint64 `protobuf:"varint,5,opt,name=Label,json=label,proto3" json:"Label,omitempty"` Replaces uint64 `protobuf:"varint,6,opt,name=Replaces,json=replaces,proto3" json:"Replaces,omitempty"` Timestamp int64 `protobuf:"varint,7,opt,name=Timestamp,json=timestamp,proto3" json:"Timestamp,omitempty"` Value []byte `protobuf:"bytes,8,opt,name=Value,json=value,proto3" json:"Value,omitempty"` Deleted bool `protobuf:"varint,9,opt,name=Deleted,json=deleted,proto3" json:"Deleted,omitempty"` }
func (*Primitive) Descriptor ¶ added in v0.7.0
func (*Primitive) GetDeleted ¶ added in v0.7.0
func (Primitive) GetDirection ¶ added in v0.7.0
func (*Primitive) GetPredicate ¶ added in v0.7.0
func (*Primitive) GetReplaces ¶ added in v0.7.0
func (*Primitive) GetSubject ¶ added in v0.7.0
func (*Primitive) GetTimestamp ¶ added in v0.7.0
func (*Primitive) IsSameLink ¶ added in v0.7.0
func (*Primitive) ProtoMessage ¶ added in v0.7.0
func (*Primitive) ProtoMessage()
func (*Primitive) SetDirection ¶ added in v0.7.0
type PrimitiveType ¶ added in v0.7.0
type PrimitiveType int32
const ( PrimitiveType_LINK PrimitiveType = 0 PrimitiveType_IRI PrimitiveType = 1 PrimitiveType_STRING PrimitiveType = 2 PrimitiveType_BNODE PrimitiveType = 3 PrimitiveType_TYPED_STR PrimitiveType = 4 PrimitiveType_LANG_STR PrimitiveType = 5 PrimitiveType_INT PrimitiveType = 6 PrimitiveType_FLOAT PrimitiveType = 7 PrimitiveType_BOOL PrimitiveType = 8 PrimitiveType_TIMESTAMP PrimitiveType = 9 )
func (PrimitiveType) EnumDescriptor ¶ added in v0.7.0
func (PrimitiveType) EnumDescriptor() ([]byte, []int)
func (PrimitiveType) String ¶ added in v0.7.0
func (x PrimitiveType) String() string
Click to show internal directories.
Click to hide internal directories.