Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Requests is a map of each Request resource accesseble by it's name. Requests = RequestMap{} )
Functions ¶
func SearchRequests ¶
Search searches through the loaded resources to see if there is a match for the given query string. This will in turn call searchRequestVariants to find the variants for that resource.
TODO: Ideally we should not be running this so often as we are (currently on each keypress to CmdBar in DefaultMode for default UI). These return values should be stored somewhere so they can be quickly accessed without having to keep searching through each request and each of it's variants.
Also we might not want to conflate retuning each variant for each request in what's named SearchRequests.
Types ¶
type RequestMap ¶
RequestMap represents a list of all requests associated by name with a string.
func (RequestMap) String ¶
func (rm RequestMap) String() string
String returns a list of all requests using the request map, along with any variants that exist within the request spec.