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 ¶
DecorationsKey returns the decorations lookup table key for the given ticket.
func EdgeSetKey ¶
EdgeSetKey returns the edgeset lookup table key for the given ticket.
Types ¶
type Table ¶
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.
Click to show internal directories.
Click to hide internal directories.