internal/source/gitlab/api/resolver.go (7 lines of code) (raw):

package api import ( "context" ) // Resolver represents an interface we use to retrieve information from GitLab // in a more generic way. It can be a concrete API client or cached client. type Resolver interface { // Resolve retrieves an VirtualDomain from the GitLab API and wraps it into a Lookup Resolve(ctx context.Context, domain string) *Lookup }