xrefs

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: Apache-2.0 Imports: 17 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) Callers added in v0.0.18

Callers implements part of the Service interface.

func (*GraphStoreService) CrossReferences added in v0.0.13

CrossReferences implements part of the xrefs Service interface.

func (*GraphStoreService) Decorations

Decorations implements part of the Service interface.

func (*GraphStoreService) Documentation added in v0.0.21

Documentation 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