Welcome to mirror list, hosted at ThFree Co, Russian Federation.

resolver.go « api « gitlab « source « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 061a1ddd4e733b7c6d72859f8a1aa9321ca5c309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 retrives an VirtualDomain from GitLab API and wraps it into Lookup
	Resolve(ctx context.Context, domain string) *Lookup
}