pquads

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package pquads implements Cayley-specific protobuf-based quads format.

Index

Constants

View Source
const ContentType = "application/x-protobuf"

Variables

View Source
var DefaultMaxSize = 1024 * 1024

Functions

func MarshalValue

func MarshalValue(v quad.Value) ([]byte, error)

MarshalValue is a helper for serialization of quad.Value.

func UnmarshalValue

func UnmarshalValue(ctx context.Context, data []byte) (quad.Value, error)

UnmarshalValue is a helper for deserialization of quad.Value.

Types

type Header struct {

	// Full is set if encoder always writes every quad directions instead of
	// skipping duplicated values on each direction (except label) for subsequent quads.
	Full bool `protobuf:"varint,1,opt,name=full,proto3" json:"full,omitempty"`
	// NotStrict is set if encoder emits WireQuad instead of StrictQuad messages.
	NotStrict bool `protobuf:"varint,2,opt,name=not_strict,json=notStrict,proto3" json:"notStrict,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) CloneMessageVT added in v0.9.0

func (m *Header) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Header) CloneVT added in v0.9.0

func (m *Header) CloneVT() *Header

func (*Header) EqualMessageVT added in v0.9.0

func (this *Header) EqualMessageVT(thatMsg any) bool

func (*Header) EqualVT added in v0.9.0

func (this *Header) EqualVT(that *Header) bool

func (*Header) GetFull added in v0.9.0

func (x *Header) GetFull() bool

func (*Header) GetNotStrict added in v0.9.0

func (x *Header) GetNotStrict() bool

func (*Header) MarshalJSON added in v0.9.0

func (x *Header) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Header to JSON.

func (*Header) MarshalProtoJSON added in v0.9.0

func (x *Header) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Header message to JSON.

func (*Header) MarshalProtoText added in v0.9.0

func (x *Header) MarshalProtoText() string

func (*Header) MarshalToSizedBufferVT added in v0.9.0

func (m *Header) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Header) MarshalToVT added in v0.9.0

func (m *Header) MarshalToVT(dAtA []byte) (int, error)

func (*Header) MarshalVT added in v0.9.0

func (m *Header) MarshalVT() (dAtA []byte, err error)

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (x *Header) Reset()

func (*Header) SizeVT added in v0.9.0

func (m *Header) SizeVT() (n int)

func (*Header) String

func (x *Header) String() string

func (*Header) UnmarshalJSON added in v0.9.0

func (x *Header) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Header from JSON.

func (*Header) UnmarshalProtoJSON added in v0.9.0

func (x *Header) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Header message from JSON.

func (*Header) UnmarshalVT added in v0.9.0

func (m *Header) UnmarshalVT(dAtA []byte) error

type Options

type Options struct {
	// Full can be set to disable quad values compaction.
	//
	// This will increase files size, but skip will work faster by omitting unmarshal entirely.
	Full bool
	// Strict can be set to only marshal quads allowed by RDF spec.
	Strict bool
}

type Quad

type Quad struct {
	Subject        string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Predicate      string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	Object         string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Label          string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	SubjectValue   *Value `protobuf:"bytes,5,opt,name=subject_value,json=subjectValue,proto3" json:"subjectValue,omitempty"`
	PredicateValue *Value `protobuf:"bytes,6,opt,name=predicate_value,json=predicateValue,proto3" json:"predicateValue,omitempty"`
	ObjectValue    *Value `protobuf:"bytes,7,opt,name=object_value,json=objectValue,proto3" json:"objectValue,omitempty"`
	LabelValue     *Value `protobuf:"bytes,8,opt,name=label_value,json=labelValue,proto3" json:"labelValue,omitempty"`
	// contains filtered or unexported fields
}

Quad is in internal representation of quad used by Cayley.

func MakeQuad

func MakeQuad(q quad.Quad) *Quad

MakeQuad converts quad.Quad to its protobuf representation.

func (*Quad) CloneMessageVT added in v0.9.0

func (m *Quad) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Quad) CloneVT added in v0.9.0

func (m *Quad) CloneVT() *Quad

func (*Quad) EqualMessageVT added in v0.9.0

func (this *Quad) EqualMessageVT(thatMsg any) bool

func (*Quad) EqualVT added in v0.9.0

func (this *Quad) EqualVT(that *Quad) bool

func (*Quad) GetLabel added in v0.9.0

func (x *Quad) GetLabel() string

func (*Quad) GetLabelValue

func (x *Quad) GetLabelValue() *Value

func (*Quad) GetObject added in v0.9.0

func (x *Quad) GetObject() string

func (*Quad) GetObjectValue

func (x *Quad) GetObjectValue() *Value

func (*Quad) GetPredicate added in v0.9.0

func (x *Quad) GetPredicate() string

func (*Quad) GetPredicateValue

func (x *Quad) GetPredicateValue() *Value

func (*Quad) GetSubject added in v0.9.0

func (x *Quad) GetSubject() string

func (*Quad) GetSubjectValue

func (x *Quad) GetSubjectValue() *Value

func (*Quad) MarshalJSON added in v0.9.0

func (x *Quad) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Quad to JSON.

func (*Quad) MarshalProtoJSON added in v0.9.0

func (x *Quad) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Quad message to JSON.

func (*Quad) MarshalProtoText added in v0.9.0

func (x *Quad) MarshalProtoText() string

func (*Quad) MarshalToSizedBufferVT added in v0.9.0

func (m *Quad) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Quad) MarshalToVT added in v0.9.0

func (m *Quad) MarshalToVT(dAtA []byte) (int, error)

func (*Quad) MarshalVT added in v0.9.0

func (m *Quad) MarshalVT() (dAtA []byte, err error)

func (*Quad) ProtoMessage

func (*Quad) ProtoMessage()

func (*Quad) Reset

func (x *Quad) Reset()

func (*Quad) SizeVT added in v0.9.0

func (m *Quad) SizeVT() (n int)

func (*Quad) String

func (x *Quad) String() string

func (*Quad) ToNative

func (m *Quad) ToNative() (q quad.Quad)

ToNative converts protobuf Quad to quad.Quad.

func (*Quad) UnmarshalJSON added in v0.9.0

func (x *Quad) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Quad from JSON.

func (*Quad) UnmarshalProtoJSON added in v0.9.0

func (x *Quad) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Quad message from JSON.

func (*Quad) UnmarshalVT added in v0.9.0

func (m *Quad) UnmarshalVT(dAtA []byte) error

func (*Quad) Upgrade

func (m *Quad) Upgrade()

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader, maxSize int) *Reader

NewReader creates protobuf quads decoder.

MaxSize argument limits maximal size of the buffer used to read quads.

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) ReadQuad

func (r *Reader) ReadQuad(ctx context.Context) (quad.Quad, error)

func (*Reader) SetCloser added in v0.7.0

func (r *Reader) SetCloser(c io.Closer)

func (*Reader) SkipQuad

func (r *Reader) SkipQuad(ctx context.Context) error

type StrictQuad

type StrictQuad struct {
	Subject   *StrictQuad_Ref `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Predicate *StrictQuad_Ref `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	Object    *Value          `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Label     *StrictQuad_Ref `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

StrictQuad is a quad as described by RDF spec.

func (*StrictQuad) CloneMessageVT added in v0.9.0

func (m *StrictQuad) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*StrictQuad) CloneVT added in v0.9.0

func (m *StrictQuad) CloneVT() *StrictQuad

func (*StrictQuad) EqualMessageVT added in v0.9.0

func (this *StrictQuad) EqualMessageVT(thatMsg any) bool

func (*StrictQuad) EqualVT added in v0.9.0

func (this *StrictQuad) EqualVT(that *StrictQuad) bool

func (*StrictQuad) GetLabel

func (x *StrictQuad) GetLabel() *StrictQuad_Ref

func (*StrictQuad) GetObject

func (x *StrictQuad) GetObject() *Value

func (*StrictQuad) GetPredicate

func (x *StrictQuad) GetPredicate() *StrictQuad_Ref

func (*StrictQuad) GetSubject

func (x *StrictQuad) GetSubject() *StrictQuad_Ref

func (*StrictQuad) MarshalJSON added in v0.9.0

func (x *StrictQuad) MarshalJSON() ([]byte, error)

MarshalJSON marshals the StrictQuad to JSON.

func (*StrictQuad) MarshalProtoJSON added in v0.9.0

func (x *StrictQuad) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the StrictQuad message to JSON.

func (*StrictQuad) MarshalProtoText added in v0.9.0

func (x *StrictQuad) MarshalProtoText() string

func (*StrictQuad) MarshalToSizedBufferVT added in v0.9.0

func (m *StrictQuad) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StrictQuad) MarshalToVT added in v0.9.0

func (m *StrictQuad) MarshalToVT(dAtA []byte) (int, error)

func (*StrictQuad) MarshalVT added in v0.9.0

func (m *StrictQuad) MarshalVT() (dAtA []byte, err error)

func (*StrictQuad) ProtoMessage

func (*StrictQuad) ProtoMessage()

func (*StrictQuad) Reset

func (x *StrictQuad) Reset()

func (*StrictQuad) SizeVT added in v0.9.0

func (m *StrictQuad) SizeVT() (n int)

func (*StrictQuad) String

func (x *StrictQuad) String() string

func (*StrictQuad) ToNative

func (m *StrictQuad) ToNative() (q quad.Quad)

ToNative converts protobuf StrictQuad to quad.Quad.

func (*StrictQuad) UnmarshalJSON added in v0.9.0

func (x *StrictQuad) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the StrictQuad from JSON.

func (*StrictQuad) UnmarshalProtoJSON added in v0.9.0

func (x *StrictQuad) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the StrictQuad message from JSON.

func (*StrictQuad) UnmarshalVT added in v0.9.0

func (m *StrictQuad) UnmarshalVT(dAtA []byte) error

type StrictQuadRaw added in v0.9.0

type StrictQuadRaw struct {
	Subject   []byte `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Predicate []byte `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	Object    []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Label     []byte `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

StrictQuadRaw is the same as StrictQuad, but doesn't decode underlying values.

func (*StrictQuadRaw) CloneMessageVT added in v0.9.0

func (m *StrictQuadRaw) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*StrictQuadRaw) CloneVT added in v0.9.0

func (m *StrictQuadRaw) CloneVT() *StrictQuadRaw

func (*StrictQuadRaw) EqualMessageVT added in v0.9.0

func (this *StrictQuadRaw) EqualMessageVT(thatMsg any) bool

func (*StrictQuadRaw) EqualVT added in v0.9.0

func (this *StrictQuadRaw) EqualVT(that *StrictQuadRaw) bool

func (*StrictQuadRaw) GetLabel added in v0.9.0

func (x *StrictQuadRaw) GetLabel() []byte

func (*StrictQuadRaw) GetObject added in v0.9.0

func (x *StrictQuadRaw) GetObject() []byte

func (*StrictQuadRaw) GetPredicate added in v0.9.0

func (x *StrictQuadRaw) GetPredicate() []byte

func (*StrictQuadRaw) GetSubject added in v0.9.0

func (x *StrictQuadRaw) GetSubject() []byte

func (*StrictQuadRaw) MarshalJSON added in v0.9.0

func (x *StrictQuadRaw) MarshalJSON() ([]byte, error)

MarshalJSON marshals the StrictQuadRaw to JSON.

func (*StrictQuadRaw) MarshalProtoJSON added in v0.9.0

func (x *StrictQuadRaw) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the StrictQuadRaw message to JSON.

func (*StrictQuadRaw) MarshalProtoText added in v0.9.0

func (x *StrictQuadRaw) MarshalProtoText() string

func (*StrictQuadRaw) MarshalToSizedBufferVT added in v0.9.0

func (m *StrictQuadRaw) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StrictQuadRaw) MarshalToVT added in v0.9.0

func (m *StrictQuadRaw) MarshalToVT(dAtA []byte) (int, error)

func (*StrictQuadRaw) MarshalVT added in v0.9.0

func (m *StrictQuadRaw) MarshalVT() (dAtA []byte, err error)

func (*StrictQuadRaw) ProtoMessage added in v0.9.0

func (*StrictQuadRaw) ProtoMessage()

func (*StrictQuadRaw) Reset added in v0.9.0

func (x *StrictQuadRaw) Reset()

func (*StrictQuadRaw) SizeVT added in v0.9.0

func (m *StrictQuadRaw) SizeVT() (n int)

func (*StrictQuadRaw) String added in v0.9.0

func (x *StrictQuadRaw) String() string

func (*StrictQuadRaw) UnmarshalJSON added in v0.9.0

func (x *StrictQuadRaw) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the StrictQuadRaw from JSON.

func (*StrictQuadRaw) UnmarshalProtoJSON added in v0.9.0

func (x *StrictQuadRaw) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the StrictQuadRaw message from JSON.

func (*StrictQuadRaw) UnmarshalVT added in v0.9.0

func (m *StrictQuadRaw) UnmarshalVT(dAtA []byte) error

type StrictQuad_Ref

type StrictQuad_Ref struct {

	// Types that are assignable to Value:
	//
	//	*StrictQuad_Ref_BnodeLabel
	//	*StrictQuad_Ref_Iri
	Value isStrictQuad_Ref_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*StrictQuad_Ref) CloneMessageVT added in v0.9.0

func (m *StrictQuad_Ref) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*StrictQuad_Ref) CloneVT added in v0.9.0

func (m *StrictQuad_Ref) CloneVT() *StrictQuad_Ref

func (*StrictQuad_Ref) EqualMessageVT added in v0.9.0

func (this *StrictQuad_Ref) EqualMessageVT(thatMsg any) bool

func (*StrictQuad_Ref) EqualVT added in v0.9.0

func (this *StrictQuad_Ref) EqualVT(that *StrictQuad_Ref) bool

func (*StrictQuad_Ref) GetBnodeLabel

func (x *StrictQuad_Ref) GetBnodeLabel() string

func (*StrictQuad_Ref) GetIri

func (x *StrictQuad_Ref) GetIri() string

func (*StrictQuad_Ref) GetValue

func (m *StrictQuad_Ref) GetValue() isStrictQuad_Ref_Value

func (*StrictQuad_Ref) MarshalJSON added in v0.9.0

func (x *StrictQuad_Ref) MarshalJSON() ([]byte, error)

MarshalJSON marshals the StrictQuad_Ref to JSON.

func (*StrictQuad_Ref) MarshalProtoJSON added in v0.9.0

func (x *StrictQuad_Ref) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the StrictQuad_Ref message to JSON.

func (*StrictQuad_Ref) MarshalProtoText added in v0.9.0

func (x *StrictQuad_Ref) MarshalProtoText() string

func (*StrictQuad_Ref) MarshalToSizedBufferVT added in v0.9.0

func (m *StrictQuad_Ref) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StrictQuad_Ref) MarshalToVT added in v0.9.0

func (m *StrictQuad_Ref) MarshalToVT(dAtA []byte) (int, error)

func (*StrictQuad_Ref) MarshalVT added in v0.9.0

func (m *StrictQuad_Ref) MarshalVT() (dAtA []byte, err error)

func (*StrictQuad_Ref) ProtoMessage

func (*StrictQuad_Ref) ProtoMessage()

func (*StrictQuad_Ref) Reset

func (x *StrictQuad_Ref) Reset()

func (*StrictQuad_Ref) SizeVT added in v0.9.0

func (m *StrictQuad_Ref) SizeVT() (n int)

func (*StrictQuad_Ref) String

func (x *StrictQuad_Ref) String() string

func (*StrictQuad_Ref) ToNative

func (m *StrictQuad_Ref) ToNative() (qv quad.Value)

ToNative converts protobuf Value to quad.Value.

func (*StrictQuad_Ref) UnmarshalJSON added in v0.9.0

func (x *StrictQuad_Ref) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the StrictQuad_Ref from JSON.

func (*StrictQuad_Ref) UnmarshalProtoJSON added in v0.9.0

func (x *StrictQuad_Ref) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the StrictQuad_Ref message from JSON.

func (*StrictQuad_Ref) UnmarshalVT added in v0.9.0

func (m *StrictQuad_Ref) UnmarshalVT(dAtA []byte) error

type StrictQuad_Ref_BnodeLabel

type StrictQuad_Ref_BnodeLabel struct {
	BnodeLabel string `protobuf:"bytes,2,opt,name=bnode_label,json=bnodeLabel,proto3,oneof"`
}

func (*StrictQuad_Ref_BnodeLabel) CloneOneofVT added in v0.9.0

func (m *StrictQuad_Ref_BnodeLabel) CloneOneofVT() isStrictQuad_Ref_Value

func (*StrictQuad_Ref_BnodeLabel) CloneVT added in v0.9.0

func (*StrictQuad_Ref_BnodeLabel) EqualVT added in v0.9.0

func (this *StrictQuad_Ref_BnodeLabel) EqualVT(thatIface isStrictQuad_Ref_Value) bool

func (*StrictQuad_Ref_BnodeLabel) MarshalToSizedBufferVT added in v0.9.0

func (m *StrictQuad_Ref_BnodeLabel) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StrictQuad_Ref_BnodeLabel) MarshalToVT added in v0.9.0

func (m *StrictQuad_Ref_BnodeLabel) MarshalToVT(dAtA []byte) (int, error)

func (*StrictQuad_Ref_BnodeLabel) SizeVT added in v0.9.0

func (m *StrictQuad_Ref_BnodeLabel) SizeVT() (n int)

type StrictQuad_Ref_Iri

type StrictQuad_Ref_Iri struct {
	Iri string `protobuf:"bytes,3,opt,name=iri,proto3,oneof"`
}

func (*StrictQuad_Ref_Iri) CloneOneofVT added in v0.9.0

func (m *StrictQuad_Ref_Iri) CloneOneofVT() isStrictQuad_Ref_Value

func (*StrictQuad_Ref_Iri) CloneVT added in v0.9.0

func (m *StrictQuad_Ref_Iri) CloneVT() *StrictQuad_Ref_Iri

func (*StrictQuad_Ref_Iri) EqualVT added in v0.9.0

func (this *StrictQuad_Ref_Iri) EqualVT(thatIface isStrictQuad_Ref_Value) bool

func (*StrictQuad_Ref_Iri) MarshalToSizedBufferVT added in v0.9.0

func (m *StrictQuad_Ref_Iri) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StrictQuad_Ref_Iri) MarshalToVT added in v0.9.0

func (m *StrictQuad_Ref_Iri) MarshalToVT(dAtA []byte) (int, error)

func (*StrictQuad_Ref_Iri) SizeVT added in v0.9.0

func (m *StrictQuad_Ref_Iri) SizeVT() (n int)

type Value

type Value struct {

	// Types that are assignable to Value:
	//
	//	*Value_Raw
	//	*Value_Str
	//	*Value_Iri
	//	*Value_Bnode
	//	*Value_TypedStr
	//	*Value_LangStr
	//	*Value_Int
	//	*Value_Float
	//	*Value_Boolean
	//	*Value_Time
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func MakeValue

func MakeValue(qv quad.Value) *Value

MakeValue converts quad.Value to its protobuf representation.

func (*Value) CloneMessageVT added in v0.9.0

func (m *Value) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Value) CloneVT added in v0.9.0

func (m *Value) CloneVT() *Value

func (*Value) EqualMessageVT added in v0.9.0

func (this *Value) EqualMessageVT(thatMsg any) bool

func (*Value) EqualVT added in v0.9.0

func (this *Value) EqualVT(that *Value) bool

func (*Value) GetBnode

func (x *Value) GetBnode() string

func (*Value) GetBoolean

func (x *Value) GetBoolean() bool

func (*Value) GetFloat

func (x *Value) GetFloat() float64

func (*Value) GetInt

func (x *Value) GetInt() int64

func (*Value) GetIri

func (x *Value) GetIri() string

func (*Value) GetLangStr

func (x *Value) GetLangStr() *Value_LangString

func (*Value) GetRaw

func (x *Value) GetRaw() []byte

func (*Value) GetStr

func (x *Value) GetStr() string

func (*Value) GetTime

func (x *Value) GetTime() *Value_Timestamp

func (*Value) GetTypedStr

func (x *Value) GetTypedStr() *Value_TypedString

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) MarshalJSON added in v0.9.0

func (x *Value) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Value to JSON.

func (*Value) MarshalProtoJSON added in v0.9.0

func (x *Value) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Value message to JSON.

func (*Value) MarshalProtoText added in v0.9.0

func (x *Value) MarshalProtoText() string

func (*Value) MarshalToSizedBufferVT added in v0.9.0

func (m *Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value) MarshalToVT added in v0.9.0

func (m *Value) MarshalToVT(dAtA []byte) (int, error)

func (*Value) MarshalVT added in v0.9.0

func (m *Value) MarshalVT() (dAtA []byte, err error)

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) Reset

func (x *Value) Reset()

func (*Value) SizeVT added in v0.9.0

func (m *Value) SizeVT() (n int)

func (*Value) String

func (x *Value) String() string

func (*Value) ToNative

func (m *Value) ToNative() (qv quad.Value)

ToNative converts protobuf Value to quad.Value.

func (*Value) UnmarshalJSON added in v0.9.0

func (x *Value) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Value from JSON.

func (*Value) UnmarshalProtoJSON added in v0.9.0

func (x *Value) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Value message from JSON.

func (*Value) UnmarshalVT added in v0.9.0

func (m *Value) UnmarshalVT(dAtA []byte) error

type Value_Bnode

type Value_Bnode struct {
	Bnode string `protobuf:"bytes,4,opt,name=bnode,proto3,oneof"`
}

func (*Value_Bnode) CloneOneofVT added in v0.9.0

func (m *Value_Bnode) CloneOneofVT() isValue_Value

func (*Value_Bnode) CloneVT added in v0.9.0

func (m *Value_Bnode) CloneVT() *Value_Bnode

func (*Value_Bnode) EqualVT added in v0.9.0

func (this *Value_Bnode) EqualVT(thatIface isValue_Value) bool

func (*Value_Bnode) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Bnode) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Bnode) MarshalToVT added in v0.9.0

func (m *Value_Bnode) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Bnode) SizeVT added in v0.9.0

func (m *Value_Bnode) SizeVT() (n int)

type Value_Boolean

type Value_Boolean struct {
	Boolean bool `protobuf:"varint,9,opt,name=boolean,proto3,oneof"`
}

func (*Value_Boolean) CloneOneofVT added in v0.9.0

func (m *Value_Boolean) CloneOneofVT() isValue_Value

func (*Value_Boolean) CloneVT added in v0.9.0

func (m *Value_Boolean) CloneVT() *Value_Boolean

func (*Value_Boolean) EqualVT added in v0.9.0

func (this *Value_Boolean) EqualVT(thatIface isValue_Value) bool

func (*Value_Boolean) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Boolean) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Boolean) MarshalToVT added in v0.9.0

func (m *Value_Boolean) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Boolean) SizeVT added in v0.9.0

func (m *Value_Boolean) SizeVT() (n int)

type Value_Float

type Value_Float struct {
	Float float64 `protobuf:"fixed64,8,opt,name=float,proto3,oneof"`
}

func (*Value_Float) CloneOneofVT added in v0.9.0

func (m *Value_Float) CloneOneofVT() isValue_Value

func (*Value_Float) CloneVT added in v0.9.0

func (m *Value_Float) CloneVT() *Value_Float

func (*Value_Float) EqualVT added in v0.9.0

func (this *Value_Float) EqualVT(thatIface isValue_Value) bool

func (*Value_Float) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Float) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Float) MarshalToVT added in v0.9.0

func (m *Value_Float) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Float) SizeVT added in v0.9.0

func (m *Value_Float) SizeVT() (n int)

type Value_Int

type Value_Int struct {
	Int int64 `protobuf:"varint,7,opt,name=int,proto3,oneof"`
}

func (*Value_Int) CloneOneofVT added in v0.9.0

func (m *Value_Int) CloneOneofVT() isValue_Value

func (*Value_Int) CloneVT added in v0.9.0

func (m *Value_Int) CloneVT() *Value_Int

func (*Value_Int) EqualVT added in v0.9.0

func (this *Value_Int) EqualVT(thatIface isValue_Value) bool

func (*Value_Int) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Int) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Int) MarshalToVT added in v0.9.0

func (m *Value_Int) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Int) SizeVT added in v0.9.0

func (m *Value_Int) SizeVT() (n int)

type Value_Iri

type Value_Iri struct {
	Iri string `protobuf:"bytes,3,opt,name=iri,proto3,oneof"`
}

func (*Value_Iri) CloneOneofVT added in v0.9.0

func (m *Value_Iri) CloneOneofVT() isValue_Value

func (*Value_Iri) CloneVT added in v0.9.0

func (m *Value_Iri) CloneVT() *Value_Iri

func (*Value_Iri) EqualVT added in v0.9.0

func (this *Value_Iri) EqualVT(thatIface isValue_Value) bool

func (*Value_Iri) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Iri) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Iri) MarshalToVT added in v0.9.0

func (m *Value_Iri) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Iri) SizeVT added in v0.9.0

func (m *Value_Iri) SizeVT() (n int)

type Value_LangStr

type Value_LangStr struct {
	LangStr *Value_LangString `protobuf:"bytes,6,opt,name=lang_str,json=langStr,proto3,oneof"`
}

func (*Value_LangStr) CloneOneofVT added in v0.9.0

func (m *Value_LangStr) CloneOneofVT() isValue_Value

func (*Value_LangStr) CloneVT added in v0.9.0

func (m *Value_LangStr) CloneVT() *Value_LangStr

func (*Value_LangStr) EqualVT added in v0.9.0

func (this *Value_LangStr) EqualVT(thatIface isValue_Value) bool

func (*Value_LangStr) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_LangStr) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_LangStr) MarshalToVT added in v0.9.0

func (m *Value_LangStr) MarshalToVT(dAtA []byte) (int, error)

func (*Value_LangStr) SizeVT added in v0.9.0

func (m *Value_LangStr) SizeVT() (n int)

type Value_LangString

type Value_LangString struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Lang  string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_LangString) CloneMessageVT added in v0.9.0

func (m *Value_LangString) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Value_LangString) CloneVT added in v0.9.0

func (m *Value_LangString) CloneVT() *Value_LangString

func (*Value_LangString) EqualMessageVT added in v0.9.0

func (this *Value_LangString) EqualMessageVT(thatMsg any) bool

func (*Value_LangString) EqualVT added in v0.9.0

func (this *Value_LangString) EqualVT(that *Value_LangString) bool

func (*Value_LangString) GetLang added in v0.9.0

func (x *Value_LangString) GetLang() string

func (*Value_LangString) GetValue added in v0.9.0

func (x *Value_LangString) GetValue() string

func (*Value_LangString) MarshalJSON added in v0.9.0

func (x *Value_LangString) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Value_LangString to JSON.

func (*Value_LangString) MarshalProtoJSON added in v0.9.0

func (x *Value_LangString) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Value_LangString message to JSON.

func (*Value_LangString) MarshalProtoText added in v0.9.0

func (x *Value_LangString) MarshalProtoText() string

func (*Value_LangString) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_LangString) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_LangString) MarshalToVT added in v0.9.0

func (m *Value_LangString) MarshalToVT(dAtA []byte) (int, error)

func (*Value_LangString) MarshalVT added in v0.9.0

func (m *Value_LangString) MarshalVT() (dAtA []byte, err error)

func (*Value_LangString) ProtoMessage

func (*Value_LangString) ProtoMessage()

func (*Value_LangString) Reset

func (x *Value_LangString) Reset()

func (*Value_LangString) SizeVT added in v0.9.0

func (m *Value_LangString) SizeVT() (n int)

func (*Value_LangString) String

func (x *Value_LangString) String() string

func (*Value_LangString) UnmarshalJSON added in v0.9.0

func (x *Value_LangString) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Value_LangString from JSON.

func (*Value_LangString) UnmarshalProtoJSON added in v0.9.0

func (x *Value_LangString) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Value_LangString message from JSON.

func (*Value_LangString) UnmarshalVT added in v0.9.0

func (m *Value_LangString) UnmarshalVT(dAtA []byte) error

type Value_Raw

type Value_Raw struct {
	Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3,oneof"`
}

func (*Value_Raw) CloneOneofVT added in v0.9.0

func (m *Value_Raw) CloneOneofVT() isValue_Value

func (*Value_Raw) CloneVT added in v0.9.0

func (m *Value_Raw) CloneVT() *Value_Raw

func (*Value_Raw) EqualVT added in v0.9.0

func (this *Value_Raw) EqualVT(thatIface isValue_Value) bool

func (*Value_Raw) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Raw) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Raw) MarshalToVT added in v0.9.0

func (m *Value_Raw) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Raw) SizeVT added in v0.9.0

func (m *Value_Raw) SizeVT() (n int)

type Value_Str

type Value_Str struct {
	Str string `protobuf:"bytes,2,opt,name=str,proto3,oneof"`
}

func (*Value_Str) CloneOneofVT added in v0.9.0

func (m *Value_Str) CloneOneofVT() isValue_Value

func (*Value_Str) CloneVT added in v0.9.0

func (m *Value_Str) CloneVT() *Value_Str

func (*Value_Str) EqualVT added in v0.9.0

func (this *Value_Str) EqualVT(thatIface isValue_Value) bool

func (*Value_Str) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Str) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Str) MarshalToVT added in v0.9.0

func (m *Value_Str) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Str) SizeVT added in v0.9.0

func (m *Value_Str) SizeVT() (n int)

type Value_Time

type Value_Time struct {
	Time *Value_Timestamp `protobuf:"bytes,10,opt,name=time,proto3,oneof"`
}

func (*Value_Time) CloneOneofVT added in v0.9.0

func (m *Value_Time) CloneOneofVT() isValue_Value

func (*Value_Time) CloneVT added in v0.9.0

func (m *Value_Time) CloneVT() *Value_Time

func (*Value_Time) EqualVT added in v0.9.0

func (this *Value_Time) EqualVT(thatIface isValue_Value) bool

func (*Value_Time) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Time) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Time) MarshalToVT added in v0.9.0

func (m *Value_Time) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Time) SizeVT added in v0.9.0

func (m *Value_Time) SizeVT() (n int)

type Value_Timestamp

type Value_Timestamp struct {
	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos   int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_Timestamp) CloneMessageVT added in v0.9.0

func (m *Value_Timestamp) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Value_Timestamp) CloneVT added in v0.9.0

func (m *Value_Timestamp) CloneVT() *Value_Timestamp

func (*Value_Timestamp) EqualMessageVT added in v0.9.0

func (this *Value_Timestamp) EqualMessageVT(thatMsg any) bool

func (*Value_Timestamp) EqualVT added in v0.9.0

func (this *Value_Timestamp) EqualVT(that *Value_Timestamp) bool

func (*Value_Timestamp) GetNanos added in v0.9.0

func (x *Value_Timestamp) GetNanos() int32

func (*Value_Timestamp) GetSeconds added in v0.9.0

func (x *Value_Timestamp) GetSeconds() int64

func (*Value_Timestamp) MarshalJSON added in v0.9.0

func (x *Value_Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Value_Timestamp to JSON.

func (*Value_Timestamp) MarshalProtoJSON added in v0.9.0

func (x *Value_Timestamp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Value_Timestamp message to JSON.

func (*Value_Timestamp) MarshalProtoText added in v0.9.0

func (x *Value_Timestamp) MarshalProtoText() string

func (*Value_Timestamp) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Timestamp) MarshalToVT added in v0.9.0

func (m *Value_Timestamp) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Timestamp) MarshalVT added in v0.9.0

func (m *Value_Timestamp) MarshalVT() (dAtA []byte, err error)

func (*Value_Timestamp) ProtoMessage

func (*Value_Timestamp) ProtoMessage()

func (*Value_Timestamp) Reset

func (x *Value_Timestamp) Reset()

func (*Value_Timestamp) SizeVT added in v0.9.0

func (m *Value_Timestamp) SizeVT() (n int)

func (*Value_Timestamp) String

func (x *Value_Timestamp) String() string

func (*Value_Timestamp) UnmarshalJSON added in v0.9.0

func (x *Value_Timestamp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Value_Timestamp from JSON.

func (*Value_Timestamp) UnmarshalProtoJSON added in v0.9.0

func (x *Value_Timestamp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Value_Timestamp message from JSON.

func (*Value_Timestamp) UnmarshalVT added in v0.9.0

func (m *Value_Timestamp) UnmarshalVT(dAtA []byte) error

type Value_TypedStr

type Value_TypedStr struct {
	TypedStr *Value_TypedString `protobuf:"bytes,5,opt,name=typed_str,json=typedStr,proto3,oneof"`
}

func (*Value_TypedStr) CloneOneofVT added in v0.9.0

func (m *Value_TypedStr) CloneOneofVT() isValue_Value

func (*Value_TypedStr) CloneVT added in v0.9.0

func (m *Value_TypedStr) CloneVT() *Value_TypedStr

func (*Value_TypedStr) EqualVT added in v0.9.0

func (this *Value_TypedStr) EqualVT(thatIface isValue_Value) bool

func (*Value_TypedStr) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_TypedStr) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_TypedStr) MarshalToVT added in v0.9.0

func (m *Value_TypedStr) MarshalToVT(dAtA []byte) (int, error)

func (*Value_TypedStr) SizeVT added in v0.9.0

func (m *Value_TypedStr) SizeVT() (n int)

type Value_TypedString

type Value_TypedString struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Type  string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_TypedString) CloneMessageVT added in v0.9.0

func (m *Value_TypedString) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Value_TypedString) CloneVT added in v0.9.0

func (m *Value_TypedString) CloneVT() *Value_TypedString

func (*Value_TypedString) EqualMessageVT added in v0.9.0

func (this *Value_TypedString) EqualMessageVT(thatMsg any) bool

func (*Value_TypedString) EqualVT added in v0.9.0

func (this *Value_TypedString) EqualVT(that *Value_TypedString) bool

func (*Value_TypedString) GetType added in v0.9.0

func (x *Value_TypedString) GetType() string

func (*Value_TypedString) GetValue added in v0.9.0

func (x *Value_TypedString) GetValue() string

func (*Value_TypedString) MarshalJSON added in v0.9.0

func (x *Value_TypedString) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Value_TypedString to JSON.

func (*Value_TypedString) MarshalProtoJSON added in v0.9.0

func (x *Value_TypedString) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Value_TypedString message to JSON.

func (*Value_TypedString) MarshalProtoText added in v0.9.0

func (x *Value_TypedString) MarshalProtoText() string

func (*Value_TypedString) MarshalToSizedBufferVT added in v0.9.0

func (m *Value_TypedString) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_TypedString) MarshalToVT added in v0.9.0

func (m *Value_TypedString) MarshalToVT(dAtA []byte) (int, error)

func (*Value_TypedString) MarshalVT added in v0.9.0

func (m *Value_TypedString) MarshalVT() (dAtA []byte, err error)

func (*Value_TypedString) ProtoMessage

func (*Value_TypedString) ProtoMessage()

func (*Value_TypedString) Reset

func (x *Value_TypedString) Reset()

func (*Value_TypedString) SizeVT added in v0.9.0

func (m *Value_TypedString) SizeVT() (n int)

func (*Value_TypedString) String

func (x *Value_TypedString) String() string

func (*Value_TypedString) UnmarshalJSON added in v0.9.0

func (x *Value_TypedString) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Value_TypedString from JSON.

func (*Value_TypedString) UnmarshalProtoJSON added in v0.9.0

func (x *Value_TypedString) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Value_TypedString message from JSON.

func (*Value_TypedString) UnmarshalVT added in v0.9.0

func (m *Value_TypedString) UnmarshalVT(dAtA []byte) error

type WireQuad

type WireQuad struct {
	Subject   *Value `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Predicate *Value `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	Object    *Value `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Label     *Value `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

WireQuad is a quad that allows any value for it's directions.

func (*WireQuad) CloneMessageVT added in v0.9.0

func (m *WireQuad) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*WireQuad) CloneVT added in v0.9.0

func (m *WireQuad) CloneVT() *WireQuad

func (*WireQuad) EqualMessageVT added in v0.9.0

func (this *WireQuad) EqualMessageVT(thatMsg any) bool

func (*WireQuad) EqualVT added in v0.9.0

func (this *WireQuad) EqualVT(that *WireQuad) bool

func (*WireQuad) GetLabel

func (x *WireQuad) GetLabel() *Value

func (*WireQuad) GetObject

func (x *WireQuad) GetObject() *Value

func (*WireQuad) GetPredicate

func (x *WireQuad) GetPredicate() *Value

func (*WireQuad) GetSubject

func (x *WireQuad) GetSubject() *Value

func (*WireQuad) MarshalJSON added in v0.9.0

func (x *WireQuad) MarshalJSON() ([]byte, error)

MarshalJSON marshals the WireQuad to JSON.

func (*WireQuad) MarshalProtoJSON added in v0.9.0

func (x *WireQuad) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WireQuad message to JSON.

func (*WireQuad) MarshalProtoText added in v0.9.0

func (x *WireQuad) MarshalProtoText() string

func (*WireQuad) MarshalToSizedBufferVT added in v0.9.0

func (m *WireQuad) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WireQuad) MarshalToVT added in v0.9.0

func (m *WireQuad) MarshalToVT(dAtA []byte) (int, error)

func (*WireQuad) MarshalVT added in v0.9.0

func (m *WireQuad) MarshalVT() (dAtA []byte, err error)

func (*WireQuad) ProtoMessage

func (*WireQuad) ProtoMessage()

func (*WireQuad) Reset

func (x *WireQuad) Reset()

func (*WireQuad) SizeVT added in v0.9.0

func (m *WireQuad) SizeVT() (n int)

func (*WireQuad) String

func (x *WireQuad) String() string

func (*WireQuad) ToNative

func (m *WireQuad) ToNative() (q quad.Quad)

ToNative converts protobuf WireQuad to quad.Quad.

func (*WireQuad) UnmarshalJSON added in v0.9.0

func (x *WireQuad) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the WireQuad from JSON.

func (*WireQuad) UnmarshalProtoJSON added in v0.9.0

func (x *WireQuad) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WireQuad message from JSON.

func (*WireQuad) UnmarshalVT added in v0.9.0

func (m *WireQuad) UnmarshalVT(dAtA []byte) error

type WireQuadRaw added in v0.9.0

type WireQuadRaw struct {
	Subject   []byte `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Predicate []byte `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	Object    []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Label     []byte `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

WireQuadRaw is the same as WireQuad, but doesn't decode underlying values.

func (*WireQuadRaw) CloneMessageVT added in v0.9.0

func (m *WireQuadRaw) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*WireQuadRaw) CloneVT added in v0.9.0

func (m *WireQuadRaw) CloneVT() *WireQuadRaw

func (*WireQuadRaw) EqualMessageVT added in v0.9.0

func (this *WireQuadRaw) EqualMessageVT(thatMsg any) bool

func (*WireQuadRaw) EqualVT added in v0.9.0

func (this *WireQuadRaw) EqualVT(that *WireQuadRaw) bool

func (*WireQuadRaw) GetLabel added in v0.9.0

func (x *WireQuadRaw) GetLabel() []byte

func (*WireQuadRaw) GetObject added in v0.9.0

func (x *WireQuadRaw) GetObject() []byte

func (*WireQuadRaw) GetPredicate added in v0.9.0

func (x *WireQuadRaw) GetPredicate() []byte

func (*WireQuadRaw) GetSubject added in v0.9.0

func (x *WireQuadRaw) GetSubject() []byte

func (*WireQuadRaw) MarshalJSON added in v0.9.0

func (x *WireQuadRaw) MarshalJSON() ([]byte, error)

MarshalJSON marshals the WireQuadRaw to JSON.

func (*WireQuadRaw) MarshalProtoJSON added in v0.9.0

func (x *WireQuadRaw) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WireQuadRaw message to JSON.

func (*WireQuadRaw) MarshalProtoText added in v0.9.0

func (x *WireQuadRaw) MarshalProtoText() string

func (*WireQuadRaw) MarshalToSizedBufferVT added in v0.9.0

func (m *WireQuadRaw) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WireQuadRaw) MarshalToVT added in v0.9.0

func (m *WireQuadRaw) MarshalToVT(dAtA []byte) (int, error)

func (*WireQuadRaw) MarshalVT added in v0.9.0

func (m *WireQuadRaw) MarshalVT() (dAtA []byte, err error)

func (*WireQuadRaw) ProtoMessage added in v0.9.0

func (*WireQuadRaw) ProtoMessage()

func (*WireQuadRaw) Reset added in v0.9.0

func (x *WireQuadRaw) Reset()

func (*WireQuadRaw) SizeVT added in v0.9.0

func (m *WireQuadRaw) SizeVT() (n int)

func (*WireQuadRaw) String added in v0.9.0

func (x *WireQuadRaw) String() string

func (*WireQuadRaw) UnmarshalJSON added in v0.9.0

func (x *WireQuadRaw) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the WireQuadRaw from JSON.

func (*WireQuadRaw) UnmarshalProtoJSON added in v0.9.0

func (x *WireQuadRaw) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WireQuadRaw message from JSON.

func (*WireQuadRaw) UnmarshalVT added in v0.9.0

func (m *WireQuadRaw) UnmarshalVT(dAtA []byte) error

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer, opts *Options) *Writer

NewWriter creates protobuf quads encoder.

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) MaxSize

func (w *Writer) MaxSize() int

MaxSize returns a maximal message size written.

func (*Writer) SetCloser added in v0.7.0

func (w *Writer) SetCloser(c io.Closer)

func (*Writer) WriteQuad

func (w *Writer) WriteQuad(ctx context.Context, q quad.Quad) error

func (*Writer) WriteQuads added in v0.9.0

func (w *Writer) WriteQuads(ctx context.Context, buf []quad.Quad) (int, error)

Directories

Path Synopsis
pio

Jump to

Keyboard shortcuts

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