diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-07-28 02:44:37 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-07-28 02:44:37 +0300 |
commit | 98b61cf4663926bec3ae822f60cc34cce6e11b75 (patch) | |
tree | 0c3441a103255da9ba240e606f41929b210c1ffc /internal/source/gitlab/cache/cache.go | |
parent | faa6a4f1ed63dfd3d9f6c193275b1186e66978ec (diff) |
Replace checker in gitlab package
Add `Status` back to the Gitlab struct and the interfaces it needs.
Remove checker interface.
Diffstat (limited to 'internal/source/gitlab/cache/cache.go')
-rw-r--r-- | internal/source/gitlab/cache/cache.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/cache.go b/internal/source/gitlab/cache/cache.go index c8d166b5..37cef111 100644 --- a/internal/source/gitlab/cache/cache.go +++ b/internal/source/gitlab/cache/cache.go @@ -109,3 +109,8 @@ func (c *Cache) Resolve(ctx context.Context, domain string) *api.Lookup { metrics.DomainsSourceCacheMiss.Inc() return entry.Retrieve(ctx, c.client) } + +// Status calls the client Status to check connectivity with the API +func (c *Cache) Status() error { + return c.client.Status() +} |