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

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-07-07 10:03:54 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-07-07 10:03:54 +0300
commitc81339af0bd218ccb956f53d0f7bbabef835a5a4 (patch)
tree8ea2b81a4987cd442943657ff969473496bacb09 /internal/source/source.go
parent86afc1dfeeb07fbc140d08ef8cdcfd8cbd4d7bcb (diff)
Add correlation_id to outbound requests
Diffstat (limited to 'internal/source/source.go')
-rw-r--r--internal/source/source.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/source/source.go b/internal/source/source.go
index 5540066c..cbe949ef 100644
--- a/internal/source/source.go
+++ b/internal/source/source.go
@@ -1,9 +1,13 @@
package source
-import "gitlab.com/gitlab-org/gitlab-pages/internal/domain"
+import (
+ "context"
+
+ "gitlab.com/gitlab-org/gitlab-pages/internal/domain"
+)
// Source represents an abstract interface of a domains configuration source.
type Source interface {
- GetDomain(string) (*domain.Domain, error)
+ GetDomain(context.Context, string) (*domain.Domain, error)
IsReady() bool
}