Documentation
¶
Index ¶
- func FetchNodesByID(tx graph.Transaction, cache Cache, ids []graph.ID) ([]*graph.Node, error)
- func FetchRelationshipsByID(tx graph.Transaction, cache Cache, ids []graph.ID) (graph.RelationshipSet, error)
- func ShallowFetchNodesByID(tx graph.Transaction, cache Cache, ids []graph.ID) ([]*graph.Node, error)
- func ShallowFetchRelationships(cache Cache, graphQuery graph.RelationshipQuery) ([]*graph.Relationship, error)
- type Cache
- func (s Cache) CheckedGetNode(id graph.ID) (*graph.Node, bool)
- func (s Cache) CheckedGetRelationship(id graph.ID) (*graph.Relationship, bool)
- func (s Cache) GetNode(id graph.ID) *graph.Node
- func (s Cache) GetNodes(ids []graph.ID) ([]*graph.Node, []graph.ID)
- func (s Cache) GetRelationship(id graph.ID) *graph.Relationship
- func (s Cache) GetRelationships(ids []graph.ID) ([]*graph.Relationship, []graph.ID)
- func (s Cache) NodesCached() int
- func (s Cache) PutNodeSet(nodes graph.NodeSet)
- func (s Cache) PutNodes(nodes []*graph.Node)
- func (s Cache) PutRelationshipSet(relationships graph.RelationshipSet)
- func (s Cache) PutRelationships(relationships []*graph.Relationship)
- func (s Cache) RelationshipsCached() int
- func (s Cache) SizeOf() size.Size
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchNodesByID ¶
func FetchRelationshipsByID ¶
func FetchRelationshipsByID(tx graph.Transaction, cache Cache, ids []graph.ID) (graph.RelationshipSet, error)
func ShallowFetchNodesByID ¶
func ShallowFetchRelationships ¶
func ShallowFetchRelationships(cache Cache, graphQuery graph.RelationshipQuery) ([]*graph.Relationship, error)
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (Cache) CheckedGetRelationship ¶
func (Cache) GetRelationship ¶
func (s Cache) GetRelationship(id graph.ID) *graph.Relationship
func (Cache) GetRelationships ¶
func (Cache) NodesCached ¶
func (Cache) PutNodeSet ¶
func (Cache) PutRelationshipSet ¶
func (s Cache) PutRelationshipSet(relationships graph.RelationshipSet)
func (Cache) PutRelationships ¶
func (s Cache) PutRelationships(relationships []*graph.Relationship)
func (Cache) RelationshipsCached ¶
Click to show internal directories.
Click to hide internal directories.