Documentation ¶
Index ¶
- Constants
- Variables
- func NewStruct(data map[string]interface{}) *structpb.Struct
- func RegisterGraphServiceServer(s *grpc.Server, srv GraphServiceServer)
- func RegisterTriggerServiceServer(s *grpc.Server, srv TriggerServiceServer)
- type Change
- func (c *Change) AsMap() map[string]interface{}
- func (*Change) Descriptor() ([]byte, []int)deprecated
- func (x *Change) GetEdgeChanges() []*EdgeChange
- func (x *Change) GetIdentity() *Node
- func (x *Change) GetMethod() string
- func (x *Change) GetNodeChanges() []*NodeChange
- func (x *Change) GetTimestamp() *timestamp.Timestamp
- func (*Change) ProtoMessage()
- func (x *Change) ProtoReflect() protoreflect.Message
- func (x *Change) Reset()
- func (x *Change) String() string
- func (this *Change) Validate() error
- type ChannelFilter
- func (n *ChannelFilter) AsMap() map[string]interface{}
- func (*ChannelFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelFilter) GetChannel() string
- func (x *ChannelFilter) GetExpressions() []string
- func (*ChannelFilter) ProtoMessage()
- func (x *ChannelFilter) ProtoReflect() protoreflect.Message
- func (x *ChannelFilter) Reset()
- func (x *ChannelFilter) String() string
- func (this *ChannelFilter) Validate() error
- type Edge
- func (n *Edge) AsMap() map[string]interface{}
- func (*Edge) Descriptor() ([]byte, []int)deprecated
- func (m *Edge) FromMap(data map[string]interface{})
- func (x *Edge) GetAttributes() *_struct.Struct
- func (x *Edge) GetDirected() bool
- func (x *Edge) GetFrom() *Path
- func (x *Edge) GetMetadata() *Metadata
- func (x *Edge) GetPath() *Path
- func (x *Edge) GetTo() *Path
- func (*Edge) ProtoMessage()
- func (x *Edge) ProtoReflect() protoreflect.Message
- func (x *Edge) Reset()
- func (x *Edge) String() string
- func (this *Edge) Validate() error
- type EdgeChange
- func (*EdgeChange) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeChange) GetAfter() *Edge
- func (x *EdgeChange) GetBefore() *Edge
- func (*EdgeChange) ProtoMessage()
- func (x *EdgeChange) ProtoReflect() protoreflect.Message
- func (x *EdgeChange) Reset()
- func (x *EdgeChange) String() string
- func (this *EdgeChange) Validate() error
- type EdgeConstructor
- func (e *EdgeConstructor) AsMap() map[string]interface{}
- func (*EdgeConstructor) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeConstructor) GetAttributes() *_struct.Struct
- func (x *EdgeConstructor) GetDirected() bool
- func (x *EdgeConstructor) GetFrom() *Path
- func (x *EdgeConstructor) GetPath() *Path
- func (x *EdgeConstructor) GetTo() *Path
- func (*EdgeConstructor) ProtoMessage()
- func (x *EdgeConstructor) ProtoReflect() protoreflect.Message
- func (x *EdgeConstructor) Reset()
- func (x *EdgeConstructor) String() string
- func (this *EdgeConstructor) Validate() error
- type EdgeConstructors
- func (*EdgeConstructors) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeConstructors) GetEdges() []*EdgeConstructor
- func (*EdgeConstructors) ProtoMessage()
- func (x *EdgeConstructors) ProtoReflect() protoreflect.Message
- func (x *EdgeConstructors) Reset()
- func (x *EdgeConstructors) String() string
- func (this *EdgeConstructors) Validate() error
- type EdgeDetail
- func (*EdgeDetail) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeDetail) GetAttributes() *_struct.Struct
- func (x *EdgeDetail) GetDirected() bool
- func (x *EdgeDetail) GetFrom() *Node
- func (x *EdgeDetail) GetMetadata() *Metadata
- func (x *EdgeDetail) GetPath() *Path
- func (x *EdgeDetail) GetTo() *Node
- func (*EdgeDetail) ProtoMessage()
- func (x *EdgeDetail) ProtoReflect() protoreflect.Message
- func (x *EdgeDetail) Reset()
- func (x *EdgeDetail) String() string
- func (this *EdgeDetail) Validate() error
- type EdgeDetails
- func (*EdgeDetails) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeDetails) GetEdges() []*EdgeDetail
- func (*EdgeDetails) ProtoMessage()
- func (x *EdgeDetails) ProtoReflect() protoreflect.Message
- func (x *EdgeDetails) Reset()
- func (e *EdgeDetails) Sort()
- func (x *EdgeDetails) String() string
- func (this *EdgeDetails) Validate() error
- type EdgeFilter
- func (n *EdgeFilter) AsMap() map[string]interface{}
- func (*EdgeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeFilter) GetExpressions() []string
- func (x *EdgeFilter) GetGtype() string
- func (x *EdgeFilter) GetLimit() int32
- func (x *EdgeFilter) GetNodePath() *Path
- func (*EdgeFilter) ProtoMessage()
- func (x *EdgeFilter) ProtoReflect() protoreflect.Message
- func (x *EdgeFilter) Reset()
- func (x *EdgeFilter) String() string
- func (this *EdgeFilter) Validate() error
- type Edges
- func (e *Edges) AsMap() map[string]interface{}
- func (*Edges) Descriptor() ([]byte, []int)deprecated
- func (x *Edges) GetEdges() []*Edge
- func (*Edges) ProtoMessage()
- func (x *Edges) ProtoReflect() protoreflect.Message
- func (x *Edges) Reset()
- func (e *Edges) Sort()
- func (x *Edges) String() string
- func (this *Edges) Validate() error
- type ExpressionFilter
- func (n *ExpressionFilter) AsMap() map[string]interface{}
- func (*ExpressionFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ExpressionFilter) GetExpressions() []string
- func (*ExpressionFilter) ProtoMessage()
- func (x *ExpressionFilter) ProtoReflect() protoreflect.Message
- func (x *ExpressionFilter) Reset()
- func (x *ExpressionFilter) String() string
- func (this *ExpressionFilter) Validate() error
- type Filter
- func (n *Filter) AsMap() map[string]interface{}
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (x *Filter) GetExpressions() []string
- func (x *Filter) GetGtype() string
- func (x *Filter) GetLimit() int32
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- func (this *Filter) Validate() error
- type FromMapper
- type Graph
- func (g *Graph) AsMap() map[string]interface{}
- func (*Graph) Descriptor() ([]byte, []int)deprecated
- func (x *Graph) GetEdges() *Edges
- func (x *Graph) GetNodes() *Nodes
- func (*Graph) ProtoMessage()
- func (x *Graph) ProtoReflect() protoreflect.Message
- func (x *Graph) Reset()
- func (x *Graph) String() string
- func (this *Graph) Validate() error
- type GraphServiceClient
- type GraphServiceServer
- type GraphService_SubscribeChangesClient
- type GraphService_SubscribeChangesServer
- type GraphService_SubscribeClient
- type GraphService_SubscribeServer
- type Mapper
- type MeFilter
- func (m *MeFilter) AsMap() map[string]interface{}
- func (*MeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *MeFilter) GetEdgesFrom() *Filter
- func (x *MeFilter) GetEdgesTo() *Filter
- func (*MeFilter) ProtoMessage()
- func (x *MeFilter) ProtoReflect() protoreflect.Message
- func (x *MeFilter) Reset()
- func (x *MeFilter) String() string
- func (this *MeFilter) Validate() error
- type Message
- func (n *Message) AsMap() map[string]interface{}
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (m *Message) FromMap(data map[string]interface{})
- func (x *Message) GetChannel() string
- func (x *Message) GetData() *_struct.Struct
- func (x *Message) GetSender() *Path
- func (x *Message) GetTimestamp() *timestamp.Timestamp
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- func (this *Message) Validate() error
- type Metadata
- func (m *Metadata) AsMap() map[string]interface{}
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (m *Metadata) FromMap(data map[string]interface{})
- func (x *Metadata) GetCreatedAt() *timestamp.Timestamp
- func (x *Metadata) GetSequence() uint64
- func (x *Metadata) GetUpdatedAt() *timestamp.Timestamp
- func (x *Metadata) GetUpdatedBy() *Path
- func (x *Metadata) GetVersion() uint64
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (this *Metadata) Validate() error
- type Node
- func (n *Node) AsMap() map[string]interface{}
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (m *Node) FromMap(data map[string]interface{})
- func (x *Node) GetAttributes() *_struct.Struct
- func (x *Node) GetMetadata() *Metadata
- func (x *Node) GetPath() *Path
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- func (this *Node) Validate() error
- type NodeChange
- func (*NodeChange) Descriptor() ([]byte, []int)deprecated
- func (x *NodeChange) GetAfter() *Node
- func (x *NodeChange) GetBefore() *Node
- func (*NodeChange) ProtoMessage()
- func (x *NodeChange) ProtoReflect() protoreflect.Message
- func (x *NodeChange) Reset()
- func (x *NodeChange) String() string
- func (this *NodeChange) Validate() error
- type NodeConstructor
- func (e *NodeConstructor) AsMap() map[string]interface{}
- func (*NodeConstructor) Descriptor() ([]byte, []int)deprecated
- func (x *NodeConstructor) GetAttributes() *_struct.Struct
- func (x *NodeConstructor) GetPath() *Path
- func (*NodeConstructor) ProtoMessage()
- func (x *NodeConstructor) ProtoReflect() protoreflect.Message
- func (x *NodeConstructor) Reset()
- func (x *NodeConstructor) String() string
- func (this *NodeConstructor) Validate() error
- type NodeConstructors
- func (*NodeConstructors) Descriptor() ([]byte, []int)deprecated
- func (x *NodeConstructors) GetNodes() []*NodeConstructor
- func (*NodeConstructors) ProtoMessage()
- func (x *NodeConstructors) ProtoReflect() protoreflect.Message
- func (x *NodeConstructors) Reset()
- func (x *NodeConstructors) String() string
- func (this *NodeConstructors) Validate() error
- type NodeDetail
- func (*NodeDetail) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDetail) GetAttributes() *_struct.Struct
- func (x *NodeDetail) GetEdgesFrom() *EdgeDetails
- func (x *NodeDetail) GetEdgesTo() *EdgeDetails
- func (x *NodeDetail) GetMetadata() *Metadata
- func (x *NodeDetail) GetPath() *Path
- func (*NodeDetail) ProtoMessage()
- func (x *NodeDetail) ProtoReflect() protoreflect.Message
- func (x *NodeDetail) Reset()
- func (x *NodeDetail) String() string
- func (this *NodeDetail) Validate() error
- type NodeDetailFilter
- func (*NodeDetailFilter) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDetailFilter) GetFromEdges() *Filter
- func (x *NodeDetailFilter) GetPath() *Path
- func (x *NodeDetailFilter) GetToEdges() *Filter
- func (*NodeDetailFilter) ProtoMessage()
- func (x *NodeDetailFilter) ProtoReflect() protoreflect.Message
- func (x *NodeDetailFilter) Reset()
- func (x *NodeDetailFilter) String() string
- func (this *NodeDetailFilter) Validate() error
- type NodeDetails
- func (*NodeDetails) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDetails) GetNodeDetails() []*NodeDetail
- func (*NodeDetails) ProtoMessage()
- func (x *NodeDetails) ProtoReflect() protoreflect.Message
- func (x *NodeDetails) Reset()
- func (x *NodeDetails) String() string
- func (this *NodeDetails) Validate() error
- type Nodes
- func (e *Nodes) AsMap() map[string]interface{}
- func (*Nodes) Descriptor() ([]byte, []int)deprecated
- func (x *Nodes) GetNodes() []*Node
- func (*Nodes) ProtoMessage()
- func (x *Nodes) ProtoReflect() protoreflect.Message
- func (x *Nodes) Reset()
- func (n *Nodes) Sort()
- func (x *Nodes) String() string
- func (this *Nodes) Validate() error
- type OutboundMessage
- func (o *OutboundMessage) AsMap() map[string]interface{}
- func (*OutboundMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OutboundMessage) GetChannel() string
- func (x *OutboundMessage) GetData() *_struct.Struct
- func (*OutboundMessage) ProtoMessage()
- func (x *OutboundMessage) ProtoReflect() protoreflect.Message
- func (x *OutboundMessage) Reset()
- func (x *OutboundMessage) String() string
- func (this *OutboundMessage) Validate() error
- type Patch
- func (p *Patch) AsMap() map[string]interface{}
- func (*Patch) Descriptor() ([]byte, []int)deprecated
- func (x *Patch) GetAttributes() *_struct.Struct
- func (x *Patch) GetPath() *Path
- func (*Patch) ProtoMessage()
- func (x *Patch) ProtoReflect() protoreflect.Message
- func (x *Patch) Reset()
- func (x *Patch) String() string
- func (this *Patch) Validate() error
- type PatchFilter
- func (n *PatchFilter) AsMap() map[string]interface{}
- func (*PatchFilter) Descriptor() ([]byte, []int)deprecated
- func (x *PatchFilter) GetAttributes() *_struct.Struct
- func (x *PatchFilter) GetFilter() *Filter
- func (*PatchFilter) ProtoMessage()
- func (x *PatchFilter) ProtoReflect() protoreflect.Message
- func (x *PatchFilter) Reset()
- func (x *PatchFilter) String() string
- func (this *PatchFilter) Validate() error
- type Path
- func (m *Path) AsMap() map[string]interface{}
- func (*Path) Descriptor() ([]byte, []int)deprecated
- func (m *Path) FromMap(data map[string]interface{})
- func (x *Path) GetGid() string
- func (x *Path) GetGtype() string
- func (*Path) ProtoMessage()
- func (x *Path) ProtoReflect() protoreflect.Message
- func (x *Path) Reset()
- func (x *Path) String() string
- func (this *Path) Validate() error
- type Paths
- type Pong
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetIdentity() *Node
- func (x *Request) GetMethod() string
- func (x *Request) GetRequest() *_struct.Struct
- func (x *Request) GetTimestamp() *timestamp.Timestamp
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- func (this *Request) Validate() error
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetEdgeTypes() []string
- func (x *Schema) GetNodeTypes() []string
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- func (this *Schema) Validate() error
- type SubGraphFilter
- func (n *SubGraphFilter) AsMap() map[string]interface{}
- func (*SubGraphFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SubGraphFilter) GetEdgeFilter() *Filter
- func (x *SubGraphFilter) GetNodeFilter() *Filter
- func (*SubGraphFilter) ProtoMessage()
- func (x *SubGraphFilter) ProtoReflect() protoreflect.Message
- func (x *SubGraphFilter) Reset()
- func (x *SubGraphFilter) String() string
- func (this *SubGraphFilter) Validate() error
- type TriggerServiceClient
- type TriggerServiceServer
- type UnimplementedGraphServiceServer
- func (*UnimplementedGraphServiceServer) CreateEdge(context.Context, *EdgeConstructor) (*Edge, error)
- func (*UnimplementedGraphServiceServer) CreateEdges(context.Context, *EdgeConstructors) (*Edges, error)
- func (*UnimplementedGraphServiceServer) CreateNode(context.Context, *NodeConstructor) (*Node, error)
- func (*UnimplementedGraphServiceServer) CreateNodes(context.Context, *NodeConstructors) (*Nodes, error)
- func (*UnimplementedGraphServiceServer) EdgesFrom(context.Context, *EdgeFilter) (*Edges, error)
- func (*UnimplementedGraphServiceServer) EdgesTo(context.Context, *EdgeFilter) (*Edges, error)
- func (*UnimplementedGraphServiceServer) Export(context.Context, *empty.Empty) (*Graph, error)
- func (*UnimplementedGraphServiceServer) GetEdge(context.Context, *Path) (*Edge, error)
- func (*UnimplementedGraphServiceServer) GetNode(context.Context, *Path) (*Node, error)
- func (*UnimplementedGraphServiceServer) GetSchema(context.Context, *empty.Empty) (*Schema, error)
- func (*UnimplementedGraphServiceServer) Import(context.Context, *Graph) (*Graph, error)
- func (*UnimplementedGraphServiceServer) Me(context.Context, *MeFilter) (*NodeDetail, error)
- func (*UnimplementedGraphServiceServer) PatchEdge(context.Context, *Patch) (*Edge, error)
- func (*UnimplementedGraphServiceServer) PatchEdges(context.Context, *PatchFilter) (*Edges, error)
- func (*UnimplementedGraphServiceServer) PatchNode(context.Context, *Patch) (*Node, error)
- func (*UnimplementedGraphServiceServer) PatchNodes(context.Context, *PatchFilter) (*Nodes, error)
- func (*UnimplementedGraphServiceServer) Ping(context.Context, *empty.Empty) (*Pong, error)
- func (*UnimplementedGraphServiceServer) Publish(context.Context, *OutboundMessage) (*empty.Empty, error)
- func (*UnimplementedGraphServiceServer) SearchEdges(context.Context, *Filter) (*Edges, error)
- func (*UnimplementedGraphServiceServer) SearchNodes(context.Context, *Filter) (*Nodes, error)
- func (*UnimplementedGraphServiceServer) Shutdown(context.Context, *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedGraphServiceServer) SubGraph(context.Context, *SubGraphFilter) (*Graph, error)
- func (*UnimplementedGraphServiceServer) Subscribe(*ChannelFilter, GraphService_SubscribeServer) error
- func (*UnimplementedGraphServiceServer) SubscribeChanges(*ExpressionFilter, GraphService_SubscribeChangesServer) error
- type UnimplementedTriggerServiceServer
Constants ¶
const (
Any = "*"
)
Variables ¶
var File_api_graphik_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGraphServiceServer ¶
func RegisterGraphServiceServer(s *grpc.Server, srv GraphServiceServer)
func RegisterTriggerServiceServer ¶
func RegisterTriggerServiceServer(s *grpc.Server, srv TriggerServiceServer)
Types ¶
type Change ¶ added in v0.0.9
type Change struct { // method is the gRPC method invoked Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // identity is the identity invoking the change Identity *Node `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // timestamp is when the change was made Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // edge_changes are state changes to edges EdgeChanges []*EdgeChange `protobuf:"bytes,4,rep,name=edge_changes,json=edgeChanges,proto3" json:"edge_changes,omitempty"` // node_changes are state changes to nodes NodeChanges []*NodeChange `protobuf:"bytes,5,rep,name=node_changes,json=nodeChanges,proto3" json:"node_changes,omitempty"` // contains filtered or unexported fields }
Change represents a set of state changes in the graph
func (*Change) Descriptor
deprecated
added in
v0.0.9
func (*Change) GetEdgeChanges ¶ added in v0.0.9
func (x *Change) GetEdgeChanges() []*EdgeChange
func (*Change) GetIdentity ¶ added in v0.0.9
func (*Change) GetNodeChanges ¶ added in v0.0.9
func (x *Change) GetNodeChanges() []*NodeChange
func (*Change) GetTimestamp ¶ added in v0.0.9
func (*Change) ProtoMessage ¶ added in v0.0.9
func (*Change) ProtoMessage()
func (*Change) ProtoReflect ¶ added in v0.0.15
func (x *Change) ProtoReflect() protoreflect.Message
type ChannelFilter ¶
type ChannelFilter struct { // channel is the target channel to filter from Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // expressions are CEL expressions used to filter messages Expressions []string `protobuf:"bytes,2,rep,name=expressions,proto3" json:"expressions,omitempty"` // contains filtered or unexported fields }
ChannelFilter is used to filter messages in a pubsub channel
func (*ChannelFilter) AsMap ¶ added in v0.0.9
func (n *ChannelFilter) AsMap() map[string]interface{}
func (*ChannelFilter) Descriptor
deprecated
func (*ChannelFilter) Descriptor() ([]byte, []int)
Deprecated: Use ChannelFilter.ProtoReflect.Descriptor instead.
func (*ChannelFilter) GetChannel ¶
func (x *ChannelFilter) GetChannel() string
func (*ChannelFilter) GetExpressions ¶
func (x *ChannelFilter) GetExpressions() []string
func (*ChannelFilter) ProtoMessage ¶
func (*ChannelFilter) ProtoMessage()
func (*ChannelFilter) ProtoReflect ¶ added in v0.0.15
func (x *ChannelFilter) ProtoReflect() protoreflect.Message
func (*ChannelFilter) Reset ¶
func (x *ChannelFilter) Reset()
func (*ChannelFilter) String ¶
func (x *ChannelFilter) String() string
func (*ChannelFilter) Validate ¶
func (this *ChannelFilter) Validate() error
type Edge ¶
type Edge struct { // path is the path to the edge Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // attributes are k/v pairs Attributes *_struct.Struct `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // directed is false if the edge is bi-directional Directed bool `protobuf:"varint,3,opt,name=directed,proto3" json:"directed,omitempty"` // from is the node path that is the source of the edge From *Path `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` // to is the node path that is the destination of the edge To *Path `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"` // metadata is general metadata collected about the edge Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
Edge is a graph primitive that represents a relationship between two nodes
func (*Edge) Descriptor
deprecated
func (*Edge) GetAttributes ¶
func (*Edge) GetDirected ¶ added in v0.0.9
func (*Edge) GetMetadata ¶ added in v0.0.2
func (*Edge) ProtoMessage ¶
func (*Edge) ProtoMessage()
func (*Edge) ProtoReflect ¶ added in v0.0.15
func (x *Edge) ProtoReflect() protoreflect.Message
type EdgeChange ¶ added in v0.0.9
type EdgeChange struct { Before *Edge `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"` After *Edge `protobuf:"bytes,5,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
func (*EdgeChange) Descriptor
deprecated
added in
v0.0.9
func (*EdgeChange) Descriptor() ([]byte, []int)
Deprecated: Use EdgeChange.ProtoReflect.Descriptor instead.
func (*EdgeChange) GetAfter ¶ added in v0.0.9
func (x *EdgeChange) GetAfter() *Edge
func (*EdgeChange) GetBefore ¶ added in v0.0.9
func (x *EdgeChange) GetBefore() *Edge
func (*EdgeChange) ProtoMessage ¶ added in v0.0.9
func (*EdgeChange) ProtoMessage()
func (*EdgeChange) ProtoReflect ¶ added in v0.0.15
func (x *EdgeChange) ProtoReflect() protoreflect.Message
func (*EdgeChange) Reset ¶ added in v0.0.9
func (x *EdgeChange) Reset()
func (*EdgeChange) String ¶ added in v0.0.9
func (x *EdgeChange) String() string
func (*EdgeChange) Validate ¶ added in v0.0.9
func (this *EdgeChange) Validate() error
type EdgeConstructor ¶
type EdgeConstructor struct { // path is the path to the edge. If an id is not provided, a unique id will be generated Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // attributes are k/v pairs Attributes *_struct.Struct `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // directed is false if the edge is bi-directional Directed bool `protobuf:"varint,4,opt,name=directed,proto3" json:"directed,omitempty"` // from is the node path that is the root of the edge From *Path `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"` // to is the node path that is the destination of the edge To *Path `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
EdgeConstructor is used to create an Edge
func (*EdgeConstructor) AsMap ¶ added in v0.0.9
func (e *EdgeConstructor) AsMap() map[string]interface{}
func (*EdgeConstructor) Descriptor
deprecated
func (*EdgeConstructor) Descriptor() ([]byte, []int)
Deprecated: Use EdgeConstructor.ProtoReflect.Descriptor instead.
func (*EdgeConstructor) GetAttributes ¶
func (x *EdgeConstructor) GetAttributes() *_struct.Struct
func (*EdgeConstructor) GetDirected ¶ added in v0.0.9
func (x *EdgeConstructor) GetDirected() bool
func (*EdgeConstructor) GetFrom ¶
func (x *EdgeConstructor) GetFrom() *Path
func (*EdgeConstructor) GetPath ¶
func (x *EdgeConstructor) GetPath() *Path
func (*EdgeConstructor) GetTo ¶
func (x *EdgeConstructor) GetTo() *Path
func (*EdgeConstructor) ProtoMessage ¶
func (*EdgeConstructor) ProtoMessage()
func (*EdgeConstructor) ProtoReflect ¶ added in v0.0.15
func (x *EdgeConstructor) ProtoReflect() protoreflect.Message
func (*EdgeConstructor) Reset ¶
func (x *EdgeConstructor) Reset()
func (*EdgeConstructor) String ¶
func (x *EdgeConstructor) String() string
func (*EdgeConstructor) Validate ¶
func (this *EdgeConstructor) Validate() error
type EdgeConstructors ¶
type EdgeConstructors struct { Edges []*EdgeConstructor `protobuf:"bytes,1,rep,name=edges,proto3" json:"edges,omitempty"` // contains filtered or unexported fields }
EdgeConstructors is an array of EdgeConstructor
func (*EdgeConstructors) Descriptor
deprecated
func (*EdgeConstructors) Descriptor() ([]byte, []int)
Deprecated: Use EdgeConstructors.ProtoReflect.Descriptor instead.
func (*EdgeConstructors) GetEdges ¶
func (x *EdgeConstructors) GetEdges() []*EdgeConstructor
func (*EdgeConstructors) ProtoMessage ¶
func (*EdgeConstructors) ProtoMessage()
func (*EdgeConstructors) ProtoReflect ¶ added in v0.0.15
func (x *EdgeConstructors) ProtoReflect() protoreflect.Message
func (*EdgeConstructors) Reset ¶
func (x *EdgeConstructors) Reset()
func (*EdgeConstructors) String ¶
func (x *EdgeConstructors) String() string
func (*EdgeConstructors) Validate ¶
func (this *EdgeConstructors) Validate() error
type EdgeDetail ¶
type EdgeDetail struct { // path is the path to the edge Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // attributes are k/v pairs Attributes *_struct.Struct `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // directed is false if the edge is bi-directional Directed bool `protobuf:"varint,3,opt,name=directed,proto3" json:"directed,omitempty"` // from is the full node that is the root of the edge From *Node `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` // to is the full node that is the destination of the edge To *Node `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"` // metadata is general metadata collected about the edge Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
EdgeDetail is an edge with both of it's connected nodes fully loaded
func (*EdgeDetail) Descriptor
deprecated
func (*EdgeDetail) Descriptor() ([]byte, []int)
Deprecated: Use EdgeDetail.ProtoReflect.Descriptor instead.
func (*EdgeDetail) GetAttributes ¶
func (x *EdgeDetail) GetAttributes() *_struct.Struct
func (*EdgeDetail) GetDirected ¶ added in v0.0.9
func (x *EdgeDetail) GetDirected() bool
func (*EdgeDetail) GetFrom ¶
func (x *EdgeDetail) GetFrom() *Node
func (*EdgeDetail) GetMetadata ¶ added in v0.0.2
func (x *EdgeDetail) GetMetadata() *Metadata
func (*EdgeDetail) GetPath ¶
func (x *EdgeDetail) GetPath() *Path
func (*EdgeDetail) GetTo ¶
func (x *EdgeDetail) GetTo() *Node
func (*EdgeDetail) ProtoMessage ¶
func (*EdgeDetail) ProtoMessage()
func (*EdgeDetail) ProtoReflect ¶ added in v0.0.15
func (x *EdgeDetail) ProtoReflect() protoreflect.Message
func (*EdgeDetail) Reset ¶
func (x *EdgeDetail) Reset()
func (*EdgeDetail) String ¶
func (x *EdgeDetail) String() string
func (*EdgeDetail) Validate ¶
func (this *EdgeDetail) Validate() error
type EdgeDetails ¶
type EdgeDetails struct { Edges []*EdgeDetail `protobuf:"bytes,1,rep,name=edges,proto3" json:"edges,omitempty"` // contains filtered or unexported fields }
EdgeDetails is an array of EdgeDetail
func (*EdgeDetails) Descriptor
deprecated
func (*EdgeDetails) Descriptor() ([]byte, []int)
Deprecated: Use EdgeDetails.ProtoReflect.Descriptor instead.
func (*EdgeDetails) GetEdges ¶
func (x *EdgeDetails) GetEdges() []*EdgeDetail
func (*EdgeDetails) ProtoMessage ¶
func (*EdgeDetails) ProtoMessage()
func (*EdgeDetails) ProtoReflect ¶ added in v0.0.15
func (x *EdgeDetails) ProtoReflect() protoreflect.Message
func (*EdgeDetails) Reset ¶
func (x *EdgeDetails) Reset()
func (*EdgeDetails) Sort ¶
func (e *EdgeDetails) Sort()
func (*EdgeDetails) String ¶
func (x *EdgeDetails) String() string
func (*EdgeDetails) Validate ¶
func (this *EdgeDetails) Validate() error
type EdgeFilter ¶
type EdgeFilter struct { // node_path is the path to the target node NodePath *Path `protobuf:"bytes,1,opt,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"` // gtype is the type of edges to return Gtype string `protobuf:"bytes,2,opt,name=gtype,proto3" json:"gtype,omitempty"` // expressions are CEL expressions used to filter edges Expressions []string `protobuf:"bytes,3,rep,name=expressions,proto3" json:"expressions,omitempty"` // limit is the maximum number of edges to return Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
EdgeFilter is used to fetch edges related to a single noted
func (*EdgeFilter) AsMap ¶ added in v0.0.9
func (n *EdgeFilter) AsMap() map[string]interface{}
func (*EdgeFilter) Descriptor
deprecated
func (*EdgeFilter) Descriptor() ([]byte, []int)
Deprecated: Use EdgeFilter.ProtoReflect.Descriptor instead.
func (*EdgeFilter) GetExpressions ¶
func (x *EdgeFilter) GetExpressions() []string
func (*EdgeFilter) GetGtype ¶
func (x *EdgeFilter) GetGtype() string
func (*EdgeFilter) GetLimit ¶
func (x *EdgeFilter) GetLimit() int32
func (*EdgeFilter) GetNodePath ¶
func (x *EdgeFilter) GetNodePath() *Path
func (*EdgeFilter) ProtoMessage ¶
func (*EdgeFilter) ProtoMessage()
func (*EdgeFilter) ProtoReflect ¶ added in v0.0.15
func (x *EdgeFilter) ProtoReflect() protoreflect.Message
func (*EdgeFilter) Reset ¶
func (x *EdgeFilter) Reset()
func (*EdgeFilter) String ¶
func (x *EdgeFilter) String() string
func (*EdgeFilter) Validate ¶
func (this *EdgeFilter) Validate() error
type Edges ¶
type Edges struct { Edges []*Edge `protobuf:"bytes,1,rep,name=edges,proto3" json:"edges,omitempty"` // contains filtered or unexported fields }
Edges is an array of Edge
func (*Edges) Descriptor
deprecated
func (*Edges) ProtoMessage ¶
func (*Edges) ProtoMessage()
func (*Edges) ProtoReflect ¶ added in v0.0.15
func (x *Edges) ProtoReflect() protoreflect.Message
type ExpressionFilter ¶ added in v0.0.9
type ExpressionFilter struct { // expressions are CEL expressions used to filter edges Expressions []string `protobuf:"bytes,1,rep,name=expressions,proto3" json:"expressions,omitempty"` // contains filtered or unexported fields }
func (*ExpressionFilter) AsMap ¶ added in v0.0.9
func (n *ExpressionFilter) AsMap() map[string]interface{}
func (*ExpressionFilter) Descriptor
deprecated
added in
v0.0.9
func (*ExpressionFilter) Descriptor() ([]byte, []int)
Deprecated: Use ExpressionFilter.ProtoReflect.Descriptor instead.
func (*ExpressionFilter) GetExpressions ¶ added in v0.0.9
func (x *ExpressionFilter) GetExpressions() []string
func (*ExpressionFilter) ProtoMessage ¶ added in v0.0.9
func (*ExpressionFilter) ProtoMessage()
func (*ExpressionFilter) ProtoReflect ¶ added in v0.0.15
func (x *ExpressionFilter) ProtoReflect() protoreflect.Message
func (*ExpressionFilter) Reset ¶ added in v0.0.9
func (x *ExpressionFilter) Reset()
func (*ExpressionFilter) String ¶ added in v0.0.9
func (x *ExpressionFilter) String() string
func (*ExpressionFilter) Validate ¶ added in v0.0.9
func (this *ExpressionFilter) Validate() error
type Filter ¶
type Filter struct { // gtype is the node/edge type to be filtered Gtype string `protobuf:"bytes,1,opt,name=gtype,proto3" json:"gtype,omitempty"` // expressions are CEL expressions used to filter edges Expressions []string `protobuf:"bytes,2,rep,name=expressions,proto3" json:"expressions,omitempty"` // limit is the maximum number of items to return Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
Filter is a generic filter using Common Expression Language
func (*Filter) Descriptor
deprecated
func (*Filter) GetExpressions ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶ added in v0.0.15
func (x *Filter) ProtoReflect() protoreflect.Message
type FromMapper ¶ added in v0.0.3
type FromMapper interface {
FromMap(data map[string]interface{})
}
type Graph ¶
type Graph struct { // nodes are nodes present in the graph Nodes *Nodes `protobuf:"bytes,1,opt,name=nodes,proto3" json:"nodes,omitempty"` // edges are edges present in the graph Edges *Edges `protobuf:"bytes,2,opt,name=edges,proto3" json:"edges,omitempty"` // contains filtered or unexported fields }
Graph is an array of nodes and edges
func (*Graph) Descriptor
deprecated
func (*Graph) ProtoMessage ¶
func (*Graph) ProtoMessage()
func (*Graph) ProtoReflect ¶ added in v0.0.15
func (x *Graph) ProtoReflect() protoreflect.Message
type GraphServiceClient ¶
type GraphServiceClient interface { // Ping returns PONG if the server is health Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Pong, error) // GetSchema gets schema about the Graph node & edge types GetSchema(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Schema, error) // Me returns a NodeDetail of the currently logged in identity(the subject of the JWT) Me(ctx context.Context, in *MeFilter, opts ...grpc.CallOption) (*NodeDetail, error) // CreateNode creates a node in the graph CreateNode(ctx context.Context, in *NodeConstructor, opts ...grpc.CallOption) (*Node, error) // CreateNodes creates a batch of nodes in the graph CreateNodes(ctx context.Context, in *NodeConstructors, opts ...grpc.CallOption) (*Nodes, error) // GetNode gets a single node in the graph GetNode(ctx context.Context, in *Path, opts ...grpc.CallOption) (*Node, error) // SearchNodes searches the graph for nodes SearchNodes(ctx context.Context, in *Filter, opts ...grpc.CallOption) (*Nodes, error) // PatchNode patches a nodes attributes PatchNode(ctx context.Context, in *Patch, opts ...grpc.CallOption) (*Node, error) // PatchNodes patches a batch of nodes attributes PatchNodes(ctx context.Context, in *PatchFilter, opts ...grpc.CallOption) (*Nodes, error) // CreateEdge creates an edge in the graph CreateEdge(ctx context.Context, in *EdgeConstructor, opts ...grpc.CallOption) (*Edge, error) // CreateEdges creates a batch of edges in the graph CreateEdges(ctx context.Context, in *EdgeConstructors, opts ...grpc.CallOption) (*Edges, error) // GetEdge gets a single edge in the graph GetEdge(ctx context.Context, in *Path, opts ...grpc.CallOption) (*Edge, error) // SearchEdges searches the graph for edges SearchEdges(ctx context.Context, in *Filter, opts ...grpc.CallOption) (*Edges, error) // PatchEdge patches an edges attributes PatchEdge(ctx context.Context, in *Patch, opts ...grpc.CallOption) (*Edge, error) // PatchEdges patches a batch of edges attributes PatchEdges(ctx context.Context, in *PatchFilter, opts ...grpc.CallOption) (*Edges, error) // EdgesFrom returns edges that source from the given node path that pass the filter EdgesFrom(ctx context.Context, in *EdgeFilter, opts ...grpc.CallOption) (*Edges, error) // EdgesTo returns edges that point to the given node path that pass the filter EdgesTo(ctx context.Context, in *EdgeFilter, opts ...grpc.CallOption) (*Edges, error) // Publish publishes a message to a pubsub channel Publish(ctx context.Context, in *OutboundMessage, opts ...grpc.CallOption) (*empty.Empty, error) // Subscribe subscribes to messages on a pubsub channel Subscribe(ctx context.Context, in *ChannelFilter, opts ...grpc.CallOption) (GraphService_SubscribeClient, error) SubscribeChanges(ctx context.Context, in *ExpressionFilter, opts ...grpc.CallOption) (GraphService_SubscribeChangesClient, error) // Import imports the Graph into the database Import(ctx context.Context, in *Graph, opts ...grpc.CallOption) (*Graph, error) // Export returns the Graph data Export(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Graph, error) // SubGraph returns a subgraph using the given filter SubGraph(ctx context.Context, in *SubGraphFilter, opts ...grpc.CallOption) (*Graph, error) // Shutdown shuts down the database Shutdown(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) }
GraphServiceClient is the client API for GraphService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGraphServiceClient ¶
func NewGraphServiceClient(cc grpc.ClientConnInterface) GraphServiceClient
type GraphServiceServer ¶
type GraphServiceServer interface { // Ping returns PONG if the server is health Ping(context.Context, *empty.Empty) (*Pong, error) // GetSchema gets schema about the Graph node & edge types GetSchema(context.Context, *empty.Empty) (*Schema, error) // Me returns a NodeDetail of the currently logged in identity(the subject of the JWT) Me(context.Context, *MeFilter) (*NodeDetail, error) // CreateNode creates a node in the graph CreateNode(context.Context, *NodeConstructor) (*Node, error) // CreateNodes creates a batch of nodes in the graph CreateNodes(context.Context, *NodeConstructors) (*Nodes, error) // GetNode gets a single node in the graph GetNode(context.Context, *Path) (*Node, error) // SearchNodes searches the graph for nodes SearchNodes(context.Context, *Filter) (*Nodes, error) // PatchNode patches a nodes attributes PatchNode(context.Context, *Patch) (*Node, error) // PatchNodes patches a batch of nodes attributes PatchNodes(context.Context, *PatchFilter) (*Nodes, error) // CreateEdge creates an edge in the graph CreateEdge(context.Context, *EdgeConstructor) (*Edge, error) // CreateEdges creates a batch of edges in the graph CreateEdges(context.Context, *EdgeConstructors) (*Edges, error) // GetEdge gets a single edge in the graph GetEdge(context.Context, *Path) (*Edge, error) // SearchEdges searches the graph for edges SearchEdges(context.Context, *Filter) (*Edges, error) // PatchEdge patches an edges attributes PatchEdge(context.Context, *Patch) (*Edge, error) // PatchEdges patches a batch of edges attributes PatchEdges(context.Context, *PatchFilter) (*Edges, error) // EdgesFrom returns edges that source from the given node path that pass the filter EdgesFrom(context.Context, *EdgeFilter) (*Edges, error) // EdgesTo returns edges that point to the given node path that pass the filter EdgesTo(context.Context, *EdgeFilter) (*Edges, error) // Publish publishes a message to a pubsub channel Publish(context.Context, *OutboundMessage) (*empty.Empty, error) // Subscribe subscribes to messages on a pubsub channel Subscribe(*ChannelFilter, GraphService_SubscribeServer) error SubscribeChanges(*ExpressionFilter, GraphService_SubscribeChangesServer) error // Import imports the Graph into the database Import(context.Context, *Graph) (*Graph, error) // Export returns the Graph data Export(context.Context, *empty.Empty) (*Graph, error) // SubGraph returns a subgraph using the given filter SubGraph(context.Context, *SubGraphFilter) (*Graph, error) // Shutdown shuts down the database Shutdown(context.Context, *empty.Empty) (*empty.Empty, error) }
GraphServiceServer is the server API for GraphService service.
type GraphService_SubscribeChangesClient ¶ added in v0.0.9
type GraphService_SubscribeChangesClient interface { Recv() (*Change, error) grpc.ClientStream }
type GraphService_SubscribeChangesServer ¶ added in v0.0.9
type GraphService_SubscribeChangesServer interface { Send(*Change) error grpc.ServerStream }
type GraphService_SubscribeClient ¶
type GraphService_SubscribeClient interface { Recv() (*Message, error) grpc.ClientStream }
type GraphService_SubscribeServer ¶
type GraphService_SubscribeServer interface { Send(*Message) error grpc.ServerStream }
type MeFilter ¶
type MeFilter struct { // edges_from is a filter used to filter edges from the identity making the request EdgesFrom *Filter `protobuf:"bytes,1,opt,name=edges_from,json=edgesFrom,proto3" json:"edges_from,omitempty"` // edges_to is a filter used to filter edges to the identity making the request EdgesTo *Filter `protobuf:"bytes,2,opt,name=edges_to,json=edgesTo,proto3" json:"edges_to,omitempty"` // contains filtered or unexported fields }
MeFilter is used to fetch a NodeDetail representing the identity in the inbound JWT token
func (*MeFilter) Descriptor
deprecated
func (*MeFilter) GetEdgesFrom ¶
func (*MeFilter) GetEdgesTo ¶
func (*MeFilter) ProtoMessage ¶
func (*MeFilter) ProtoMessage()
func (*MeFilter) ProtoReflect ¶ added in v0.0.15
func (x *MeFilter) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { // channel is the channel the message was sent to Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // data is the data sent with the message Data *_struct.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // sender is the identity that sent the message Sender *Path `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` // timestamp is when the message was sent Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
Message is received on PubSub subscriptions
func (*Message) Descriptor
deprecated
func (*Message) GetChannel ¶
func (*Message) GetTimestamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.0.15
func (x *Message) ProtoReflect() protoreflect.Message
type Metadata ¶ added in v0.0.2
type Metadata struct { // created_at is the unix timestamp when the node/edge was created CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // updated_at is the unix timestamp when the node/edge was last updated UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // updated_by is the identity that last modified the node/edge UpdatedBy *Path `protobuf:"bytes,3,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // sequence is the sequence within the context of the node/edge type Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` // version iterates by 1 every time the node/edge is modified Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Metadata is general metadata collected on nodes/edges
func (*Metadata) Descriptor
deprecated
added in
v0.0.2
func (*Metadata) GetCreatedAt ¶ added in v0.0.2
func (*Metadata) GetSequence ¶ added in v0.0.3
func (*Metadata) GetUpdatedAt ¶ added in v0.0.2
func (*Metadata) GetUpdatedBy ¶ added in v0.0.2
func (*Metadata) GetVersion ¶ added in v0.0.9
func (*Metadata) ProtoMessage ¶ added in v0.0.2
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.0.15
func (x *Metadata) ProtoReflect() protoreflect.Message
type Node ¶
type Node struct { // path is the path to the node Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // k/v pairs Attributes *_struct.Struct `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // metadata is general metadata collected about the node Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
Node is a Graph primitive representing a single entity/resource. It is connected to other nodes via Edges
func (*Node) Descriptor
deprecated
func (*Node) GetAttributes ¶
func (*Node) GetMetadata ¶ added in v0.0.2
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶ added in v0.0.15
func (x *Node) ProtoReflect() protoreflect.Message
type NodeChange ¶ added in v0.0.9
type NodeChange struct { // before is the node before state change Before *Node `protobuf:"bytes,4,opt,name=before,proto3" json:"before,omitempty"` // after is the node after state change After *Node `protobuf:"bytes,5,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
NodeChange is a single state change to a node
func (*NodeChange) Descriptor
deprecated
added in
v0.0.9
func (*NodeChange) Descriptor() ([]byte, []int)
Deprecated: Use NodeChange.ProtoReflect.Descriptor instead.
func (*NodeChange) GetAfter ¶ added in v0.0.9
func (x *NodeChange) GetAfter() *Node
func (*NodeChange) GetBefore ¶ added in v0.0.9
func (x *NodeChange) GetBefore() *Node
func (*NodeChange) ProtoMessage ¶ added in v0.0.9
func (*NodeChange) ProtoMessage()
func (*NodeChange) ProtoReflect ¶ added in v0.0.15
func (x *NodeChange) ProtoReflect() protoreflect.Message
func (*NodeChange) Reset ¶ added in v0.0.9
func (x *NodeChange) Reset()
func (*NodeChange) String ¶ added in v0.0.9
func (x *NodeChange) String() string
func (*NodeChange) Validate ¶ added in v0.0.9
func (this *NodeChange) Validate() error
type NodeConstructor ¶
type NodeConstructor struct { // path is the path to the node. If an id is not provided, a unique id will be generated Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // arbitrary k/v pairs Attributes *_struct.Struct `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
NodeConstructor is used to create a node
func (*NodeConstructor) AsMap ¶ added in v0.0.9
func (e *NodeConstructor) AsMap() map[string]interface{}
func (*NodeConstructor) Descriptor
deprecated
func (*NodeConstructor) Descriptor() ([]byte, []int)
Deprecated: Use NodeConstructor.ProtoReflect.Descriptor instead.
func (*NodeConstructor) GetAttributes ¶
func (x *NodeConstructor) GetAttributes() *_struct.Struct
func (*NodeConstructor) GetPath ¶
func (x *NodeConstructor) GetPath() *Path
func (*NodeConstructor) ProtoMessage ¶
func (*NodeConstructor) ProtoMessage()
func (*NodeConstructor) ProtoReflect ¶ added in v0.0.15
func (x *NodeConstructor) ProtoReflect() protoreflect.Message
func (*NodeConstructor) Reset ¶
func (x *NodeConstructor) Reset()
func (*NodeConstructor) String ¶
func (x *NodeConstructor) String() string
func (*NodeConstructor) Validate ¶
func (this *NodeConstructor) Validate() error
type NodeConstructors ¶
type NodeConstructors struct { // nodes is an array of node constructors Nodes []*NodeConstructor `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
NodeConstructor is used to create a batch of nodes
func (*NodeConstructors) Descriptor
deprecated
func (*NodeConstructors) Descriptor() ([]byte, []int)
Deprecated: Use NodeConstructors.ProtoReflect.Descriptor instead.
func (*NodeConstructors) GetNodes ¶
func (x *NodeConstructors) GetNodes() []*NodeConstructor
func (*NodeConstructors) ProtoMessage ¶
func (*NodeConstructors) ProtoMessage()
func (*NodeConstructors) ProtoReflect ¶ added in v0.0.15
func (x *NodeConstructors) ProtoReflect() protoreflect.Message
func (*NodeConstructors) Reset ¶
func (x *NodeConstructors) Reset()
func (*NodeConstructors) String ¶
func (x *NodeConstructors) String() string
func (*NodeConstructors) Validate ¶
func (this *NodeConstructors) Validate() error
type NodeDetail ¶
type NodeDetail struct { // path is the path to the node Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // arbitrary k/v pairs Attributes *_struct.Struct `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // edges_from are edges that source from this node EdgesFrom *EdgeDetails `protobuf:"bytes,3,opt,name=edges_from,json=edgesFrom,proto3" json:"edges_from,omitempty"` // edges_to are edges that point toward this node EdgesTo *EdgeDetails `protobuf:"bytes,4,opt,name=edges_to,json=edgesTo,proto3" json:"edges_to,omitempty"` // metadata is general metadata collected about the node Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
NodeDetail is a node with its connected edges
func (*NodeDetail) Descriptor
deprecated
func (*NodeDetail) Descriptor() ([]byte, []int)
Deprecated: Use NodeDetail.ProtoReflect.Descriptor instead.
func (*NodeDetail) GetAttributes ¶
func (x *NodeDetail) GetAttributes() *_struct.Struct
func (*NodeDetail) GetEdgesFrom ¶
func (x *NodeDetail) GetEdgesFrom() *EdgeDetails
func (*NodeDetail) GetEdgesTo ¶
func (x *NodeDetail) GetEdgesTo() *EdgeDetails
func (*NodeDetail) GetMetadata ¶ added in v0.0.2
func (x *NodeDetail) GetMetadata() *Metadata
func (*NodeDetail) GetPath ¶
func (x *NodeDetail) GetPath() *Path
func (*NodeDetail) ProtoMessage ¶
func (*NodeDetail) ProtoMessage()
func (*NodeDetail) ProtoReflect ¶ added in v0.0.15
func (x *NodeDetail) ProtoReflect() protoreflect.Message
func (*NodeDetail) Reset ¶
func (x *NodeDetail) Reset()
func (*NodeDetail) String ¶
func (x *NodeDetail) String() string
func (*NodeDetail) Validate ¶
func (this *NodeDetail) Validate() error
type NodeDetailFilter ¶
type NodeDetailFilter struct { // path is the path to the node Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` FromEdges *Filter `protobuf:"bytes,2,opt,name=from_edges,json=fromEdges,proto3" json:"from_edges,omitempty"` ToEdges *Filter `protobuf:"bytes,3,opt,name=to_edges,json=toEdges,proto3" json:"to_edges,omitempty"` // contains filtered or unexported fields }
NodeDetailFilter is used to fetch node details
func (*NodeDetailFilter) Descriptor
deprecated
func (*NodeDetailFilter) Descriptor() ([]byte, []int)
Deprecated: Use NodeDetailFilter.ProtoReflect.Descriptor instead.
func (*NodeDetailFilter) GetFromEdges ¶ added in v0.0.9
func (x *NodeDetailFilter) GetFromEdges() *Filter
func (*NodeDetailFilter) GetPath ¶
func (x *NodeDetailFilter) GetPath() *Path
func (*NodeDetailFilter) GetToEdges ¶ added in v0.0.9
func (x *NodeDetailFilter) GetToEdges() *Filter
func (*NodeDetailFilter) ProtoMessage ¶
func (*NodeDetailFilter) ProtoMessage()
func (*NodeDetailFilter) ProtoReflect ¶ added in v0.0.15
func (x *NodeDetailFilter) ProtoReflect() protoreflect.Message
func (*NodeDetailFilter) Reset ¶
func (x *NodeDetailFilter) Reset()
func (*NodeDetailFilter) String ¶
func (x *NodeDetailFilter) String() string
func (*NodeDetailFilter) Validate ¶
func (this *NodeDetailFilter) Validate() error
type NodeDetails ¶
type NodeDetails struct { NodeDetails []*NodeDetail `protobuf:"bytes,1,rep,name=node_details,json=nodeDetails,proto3" json:"node_details,omitempty"` // contains filtered or unexported fields }
NodeDetails is an array of NodeDetail
func (*NodeDetails) Descriptor
deprecated
func (*NodeDetails) Descriptor() ([]byte, []int)
Deprecated: Use NodeDetails.ProtoReflect.Descriptor instead.
func (*NodeDetails) GetNodeDetails ¶
func (x *NodeDetails) GetNodeDetails() []*NodeDetail
func (*NodeDetails) ProtoMessage ¶
func (*NodeDetails) ProtoMessage()
func (*NodeDetails) ProtoReflect ¶ added in v0.0.15
func (x *NodeDetails) ProtoReflect() protoreflect.Message
func (*NodeDetails) Reset ¶
func (x *NodeDetails) Reset()
func (*NodeDetails) String ¶
func (x *NodeDetails) String() string
func (*NodeDetails) Validate ¶
func (this *NodeDetails) Validate() error
type Nodes ¶
type Nodes struct { // nodes is an array of nodes Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
Nodes is an array of nodes
func (*Nodes) Descriptor
deprecated
func (*Nodes) ProtoMessage ¶
func (*Nodes) ProtoMessage()
func (*Nodes) ProtoReflect ¶ added in v0.0.15
func (x *Nodes) ProtoReflect() protoreflect.Message
type OutboundMessage ¶
type OutboundMessage struct { // channel is the target channel to send the message to Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // data is the data to send with the message Data *_struct.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
OutboundMessage is a message to be published to a pubsub channel
func (*OutboundMessage) AsMap ¶ added in v0.0.11
func (o *OutboundMessage) AsMap() map[string]interface{}
func (*OutboundMessage) Descriptor
deprecated
func (*OutboundMessage) Descriptor() ([]byte, []int)
Deprecated: Use OutboundMessage.ProtoReflect.Descriptor instead.
func (*OutboundMessage) GetChannel ¶
func (x *OutboundMessage) GetChannel() string
func (*OutboundMessage) GetData ¶
func (x *OutboundMessage) GetData() *_struct.Struct
func (*OutboundMessage) ProtoMessage ¶
func (*OutboundMessage) ProtoMessage()
func (*OutboundMessage) ProtoReflect ¶ added in v0.0.15
func (x *OutboundMessage) ProtoReflect() protoreflect.Message
func (*OutboundMessage) Reset ¶
func (x *OutboundMessage) Reset()
func (*OutboundMessage) String ¶
func (x *OutboundMessage) String() string
func (*OutboundMessage) Validate ¶
func (this *OutboundMessage) Validate() error
type Patch ¶
type Patch struct { // path is the path to the target node/edge to patch Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // attributes are k/v pairs used to overwrite k/v pairs on a node/edge Attributes *_struct.Struct `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
Patch patches the attributes of a Node or Edge
func (*Patch) Descriptor
deprecated
func (*Patch) GetAttributes ¶
func (*Patch) ProtoMessage ¶
func (*Patch) ProtoMessage()
func (*Patch) ProtoReflect ¶ added in v0.0.15
func (x *Patch) ProtoReflect() protoreflect.Message
type PatchFilter ¶ added in v0.0.9
type PatchFilter struct { // filter is used to filter nodes/edges to patch Filter *Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // attributes are k/v pairs used to overwrite k/v pairs on all nodes/edges that pass the filter Attributes *_struct.Struct `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
PatchFilter is used to patch nodes/edges
func (*PatchFilter) AsMap ¶ added in v0.0.9
func (n *PatchFilter) AsMap() map[string]interface{}
func (*PatchFilter) Descriptor
deprecated
added in
v0.0.9
func (*PatchFilter) Descriptor() ([]byte, []int)
Deprecated: Use PatchFilter.ProtoReflect.Descriptor instead.
func (*PatchFilter) GetAttributes ¶ added in v0.0.15
func (x *PatchFilter) GetAttributes() *_struct.Struct
func (*PatchFilter) GetFilter ¶ added in v0.0.9
func (x *PatchFilter) GetFilter() *Filter
func (*PatchFilter) ProtoMessage ¶ added in v0.0.9
func (*PatchFilter) ProtoMessage()
func (*PatchFilter) ProtoReflect ¶ added in v0.0.15
func (x *PatchFilter) ProtoReflect() protoreflect.Message
func (*PatchFilter) Reset ¶ added in v0.0.9
func (x *PatchFilter) Reset()
func (*PatchFilter) String ¶ added in v0.0.9
func (x *PatchFilter) String() string
func (*PatchFilter) Validate ¶ added in v0.0.9
func (this *PatchFilter) Validate() error
type Path ¶
type Path struct { // gtype is the type of the node/edge ex: pet Gtype string `protobuf:"bytes,1,opt,name=gtype,proto3" json:"gtype,omitempty"` // gid is the unique id of the node/edge within the context of it's type Gid string `protobuf:"bytes,2,opt,name=gid,proto3" json:"gid,omitempty"` // contains filtered or unexported fields }
Path describes a node/edge type & id
func (*Path) Descriptor
deprecated
func (*Path) ProtoMessage ¶
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶ added in v0.0.15
func (x *Path) ProtoReflect() protoreflect.Message
type Paths ¶
type Paths struct { Paths []*Path `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` // contains filtered or unexported fields }
Paths is an array of paths
func (*Paths) Descriptor
deprecated
func (*Paths) ProtoMessage ¶
func (*Paths) ProtoMessage()
func (*Paths) ProtoReflect ¶ added in v0.0.15
func (x *Paths) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct { // message returns PONG if healthy Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Pong returns PONG if the server is healthy
func (*Pong) Descriptor
deprecated
func (*Pong) GetMessage ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶ added in v0.0.15
func (x *Pong) ProtoReflect() protoreflect.Message
type Request ¶ added in v0.0.16
type Request struct { // method is the rpc method Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // identity is the identity making the request Identity *Node `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // timestamp is when the intercept was received Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // request is the intercepted request Request *_struct.Struct `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
added in
v0.0.16
func (*Request) GetIdentity ¶ added in v0.0.16
func (*Request) GetRequest ¶ added in v0.0.16
func (*Request) GetTimestamp ¶ added in v0.0.16
func (*Request) ProtoMessage ¶ added in v0.0.16
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v0.0.16
func (x *Request) ProtoReflect() protoreflect.Message
type Schema ¶
type Schema struct { // edge_types are the types of edges in the graph EdgeTypes []string `protobuf:"bytes,1,rep,name=edge_types,json=edgeTypes,proto3" json:"edge_types,omitempty"` // node_types are the types of nodes in the graph NodeTypes []string `protobuf:"bytes,2,rep,name=node_types,json=nodeTypes,proto3" json:"node_types,omitempty"` // contains filtered or unexported fields }
Schema returns registered edge & node types
func (*Schema) Descriptor
deprecated
func (*Schema) GetEdgeTypes ¶
func (*Schema) GetNodeTypes ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶ added in v0.0.15
func (x *Schema) ProtoReflect() protoreflect.Message
type SubGraphFilter ¶
type SubGraphFilter struct { // node_filter is a filter used to filter nodes in the graph NodeFilter *Filter `protobuf:"bytes,1,opt,name=node_filter,json=nodeFilter,proto3" json:"node_filter,omitempty"` // edge_filter is a filter used to filter the edges of each node returned by the node_filter EdgeFilter *Filter `protobuf:"bytes,2,opt,name=edge_filter,json=edgeFilter,proto3" json:"edge_filter,omitempty"` // contains filtered or unexported fields }
SubGraphFilter is used to filter nodes/edges in the graph
func (*SubGraphFilter) AsMap ¶ added in v0.0.11
func (n *SubGraphFilter) AsMap() map[string]interface{}
func (*SubGraphFilter) Descriptor
deprecated
func (*SubGraphFilter) Descriptor() ([]byte, []int)
Deprecated: Use SubGraphFilter.ProtoReflect.Descriptor instead.
func (*SubGraphFilter) GetEdgeFilter ¶ added in v0.0.11
func (x *SubGraphFilter) GetEdgeFilter() *Filter
func (*SubGraphFilter) GetNodeFilter ¶ added in v0.0.11
func (x *SubGraphFilter) GetNodeFilter() *Filter
func (*SubGraphFilter) ProtoMessage ¶
func (*SubGraphFilter) ProtoMessage()
func (*SubGraphFilter) ProtoReflect ¶ added in v0.0.15
func (x *SubGraphFilter) ProtoReflect() protoreflect.Message
func (*SubGraphFilter) Reset ¶
func (x *SubGraphFilter) Reset()
func (*SubGraphFilter) String ¶
func (x *SubGraphFilter) String() string
func (*SubGraphFilter) Validate ¶
func (this *SubGraphFilter) Validate() error
type TriggerServiceClient ¶
type TriggerServiceClient interface { // Ping returns PONG if the server is health Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Pong, error) // Mutate mutates state changes before they are commited Mutate(ctx context.Context, in *Change, opts ...grpc.CallOption) (*Change, error) // Filter returns a set of expressions used to determine whether the request/response will be sent to the Mutation function. // These expressions are cached by the Graphik server Filter(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ExpressionFilter, error) }
TriggerServiceClient is the client API for TriggerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTriggerServiceClient ¶
func NewTriggerServiceClient(cc grpc.ClientConnInterface) TriggerServiceClient
type TriggerServiceServer ¶
type TriggerServiceServer interface { // Ping returns PONG if the server is health Ping(context.Context, *empty.Empty) (*Pong, error) // Mutate mutates state changes before they are commited Mutate(context.Context, *Change) (*Change, error) // Filter returns a set of expressions used to determine whether the request/response will be sent to the Mutation function. // These expressions are cached by the Graphik server Filter(context.Context, *empty.Empty) (*ExpressionFilter, error) }
TriggerServiceServer is the server API for TriggerService service.
type UnimplementedGraphServiceServer ¶ added in v0.0.15
type UnimplementedGraphServiceServer struct { }
UnimplementedGraphServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGraphServiceServer) CreateEdge ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) CreateEdge(context.Context, *EdgeConstructor) (*Edge, error)
func (*UnimplementedGraphServiceServer) CreateEdges ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) CreateEdges(context.Context, *EdgeConstructors) (*Edges, error)
func (*UnimplementedGraphServiceServer) CreateNode ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) CreateNode(context.Context, *NodeConstructor) (*Node, error)
func (*UnimplementedGraphServiceServer) CreateNodes ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) CreateNodes(context.Context, *NodeConstructors) (*Nodes, error)
func (*UnimplementedGraphServiceServer) EdgesFrom ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) EdgesFrom(context.Context, *EdgeFilter) (*Edges, error)
func (*UnimplementedGraphServiceServer) EdgesTo ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) EdgesTo(context.Context, *EdgeFilter) (*Edges, error)
func (*UnimplementedGraphServiceServer) Me ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) Me(context.Context, *MeFilter) (*NodeDetail, error)
func (*UnimplementedGraphServiceServer) PatchEdges ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) PatchEdges(context.Context, *PatchFilter) (*Edges, error)
func (*UnimplementedGraphServiceServer) PatchNodes ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) PatchNodes(context.Context, *PatchFilter) (*Nodes, error)
func (*UnimplementedGraphServiceServer) Publish ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) Publish(context.Context, *OutboundMessage) (*empty.Empty, error)
func (*UnimplementedGraphServiceServer) SearchEdges ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) SearchNodes ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) SubGraph ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) SubGraph(context.Context, *SubGraphFilter) (*Graph, error)
func (*UnimplementedGraphServiceServer) Subscribe ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) Subscribe(*ChannelFilter, GraphService_SubscribeServer) error
func (*UnimplementedGraphServiceServer) SubscribeChanges ¶ added in v0.0.15
func (*UnimplementedGraphServiceServer) SubscribeChanges(*ExpressionFilter, GraphService_SubscribeChangesServer) error
type UnimplementedTriggerServiceServer ¶ added in v0.0.15
type UnimplementedTriggerServiceServer struct { }
UnimplementedTriggerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTriggerServiceServer) Filter ¶ added in v0.0.15
func (*UnimplementedTriggerServiceServer) Filter(context.Context, *empty.Empty) (*ExpressionFilter, error)