proto

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 7 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 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

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

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

func (*HistoryEntry) GetHistory

func (m *HistoryEntry) GetHistory() []uint64

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

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

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

func (*LogDelta) GetAction

func (m *LogDelta) GetAction() int32

func (*LogDelta) GetID

func (m *LogDelta) GetID() uint64

func (*LogDelta) GetQuad

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

func (*LogDelta) GetTimestamp

func (m *LogDelta) GetTimestamp() int64

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

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

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

func (*NodeData) GetName

func (m *NodeData) GetName() string

func (*NodeData) GetNativeValue

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

GetNativeValue returns the value stored in Node.

func (*NodeData) GetSize

func (m *NodeData) GetSize() int64

func (*NodeData) GetValue

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

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

func (m *NodeData) Upgrade()

type Primitive

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

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

func (*Primitive) GetDeleted

func (m *Primitive) GetDeleted() bool

func (Primitive) GetDirection

func (p Primitive) GetDirection(d quad.Direction) uint64

func (*Primitive) GetID

func (m *Primitive) GetID() uint64

func (*Primitive) GetLabel

func (m *Primitive) GetLabel() uint64

func (*Primitive) GetObject

func (m *Primitive) GetObject() uint64

func (*Primitive) GetPredicate

func (m *Primitive) GetPredicate() uint64

func (*Primitive) GetReplaces

func (m *Primitive) GetReplaces() uint64

func (*Primitive) GetSubject

func (m *Primitive) GetSubject() uint64

func (*Primitive) GetTimestamp

func (m *Primitive) GetTimestamp() int64

func (*Primitive) GetValue

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

func (Primitive) IsNode

func (p Primitive) IsNode() bool
func (p *Primitive) IsSameLink(q *Primitive) bool

func (Primitive) Key

func (p Primitive) Key() interface{}

func (*Primitive) Marshal

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

func (*Primitive) MarshalTo

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

func (*Primitive) ProtoMessage

func (*Primitive) ProtoMessage()

func (*Primitive) ProtoSize

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

func (*Primitive) Reset

func (m *Primitive) Reset()

func (*Primitive) SetDirection

func (p *Primitive) SetDirection(d quad.Direction, v uint64)

func (*Primitive) String

func (m *Primitive) String() string

func (*Primitive) Unmarshal

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

type PrimitiveType

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

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

func (PrimitiveType) String

func (x PrimitiveType) String() string

Jump to

Keyboard shortcuts

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