xrefs

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package xrefs contains a simple implementation of the xrefs.Service interface backed by a graphstore.Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureReverseEdges

func EnsureReverseEdges(ctx context.Context, gs graphstore.Service) error

EnsureReverseEdges checks if gs contains reverse edges. If it doesn't, it will scan gs for all forward edges, adding a reverse for each back into the GraphStore. This is necessary for a GraphStoreService to work properly.

Types

type GraphStoreService

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

A GraphStoreService partially implements the xrefs.Service interface directly using a graphstore.Service with stored reverse edges. This is a low-performance, simple alternative to creating the serving Table representation. TODO(schroederc): parallelize GraphStore calls

func NewGraphStoreService

func NewGraphStoreService(gs graphstore.Service) *GraphStoreService

NewGraphStoreService returns a new GraphStoreService given an existing graphstore.Service.

func (*GraphStoreService) Decorations

Decorations implements part of the Service interface.

func (*GraphStoreService) Edges

Edges implements part of the Service interface.

func (*GraphStoreService) Nodes

Nodes implements part of the Service interface.

Jump to

Keyboard shortcuts

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