xrefs

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2015 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Overview

Package xrefs provides a high-performance serving table implementation of the xrefs.Service.

Table format:

nodes:<ticket>         -> srvpb.Node
edgeSets:<ticket>      -> srvpb.PagedEdgeSet
edgePages:<page_token> -> srvpb.EdgePage
decor:<ticket>         -> srvpb.FileDecorations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorationsKey

func DecorationsKey(ticket string) []byte

DecorationsKey returns the decorations lookup table key for the given ticket.

func EdgeSetKey

func EdgeSetKey(ticket string) []byte

EdgeSetKey returns the edgeset lookup table key for the given ticket.

func NodeKey

func NodeKey(ticket string) []byte

NodeKey returns the nodes lookup table key for the given ticket.

Types

type Table

type Table struct{ table.Proto }

Table implements the xrefs Service interface using a static lookup table. TODO(schroederc): parallelize multiple Table.DB lookup requests

func (*Table) Decorations

func (t *Table) Decorations(ctx context.Context, req *xpb.DecorationsRequest) (*xpb.DecorationsReply, error)

Decorations implements part of the xrefs Service interface.

func (*Table) Edges

func (t *Table) Edges(ctx context.Context, req *xpb.EdgesRequest) (*xpb.EdgesReply, error)

Edges implements part of the xrefs Service interface.

func (*Table) Nodes

func (t *Table) Nodes(ctx context.Context, req *xpb.NodesRequest) (*xpb.NodesReply, error)

Nodes implements part of the xrefs Service interface.

Jump to

Keyboard shortcuts

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