Documentation ¶
Overview ¶
Package identifiers provides a high-performance table-based implementation of the identifiers.Service. The table is structured as:
qualifed_name -> IdentifierMatch
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHTTPHandlers ¶
RegisterHTTPHandlers registers a JSON HTTP handler with mux using the given identifiers Service. The following method with be exposed:
GET /find_identifier Request: JSON encoded identifier.FindRequest Response: JSON encoded identifier.FindReply
Note: /find_identifier will return its response as a serialized protobuf if the "proto" query parameter is set.
Types ¶
type Service ¶
type Service interface { // Find returns an index of nodes associated with a given identifier Find(context.Context, *ipb.FindRequest) (*ipb.FindReply, error) // Close releases any underlying resources. Close(context.Context) error }
Service describes the interface for the identifier service which provides lookups from fully qualified identifiers to any matching semantic nodes
Click to show internal directories.
Click to hide internal directories.