endpoint: Introduce Static and GetMany function
Created by: keegancsmith
Static
is the same behaviour as calling endpoint.New
with space separated arguments, but instead the type is lifted from parsing a string into a go slice.
GetMany
will be used by our horizontal sharding to more efficiently map the set of repositories to shards.
Both changes are useful for the changes in zoekt horizontal sharding.
Test plan: go test
Part of #5725 (closed)