Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKustomizeSearch ¶
New server. Creating a server does not launch it. To launch simply:
srv, _ := NewKustomizeSearch(context.Backgroud()) err := srv.Serve() if err != nil { // Handle server issues. }
The server has three enpoints, two of which are functional:
/search: processes the ?q= parameter for a text query and returns a list of 10 resutls starting from the ?from= value provided, with the default being zero.
/metrics: returns overall metrics about the files indexed. Returns timeseries data for kustomization files, and returns breakdown of file counts by their 'kind' fields
/register: not implemented, but meant as an endpoint for adding new kustomization files to the corpus.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.