Initial commit
This commit is contained in:
commit
542ebdea34
40 changed files with 4592 additions and 0 deletions
20
checker/provider.go
Normal file
20
checker/provider.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// This file is part of the happyDomain (R) project.
|
||||
// Copyright (c) 2020-2026 happyDomain
|
||||
// Authors: Pierre-Olivier Mercier, et al.
|
||||
|
||||
package checker
|
||||
|
||||
import (
|
||||
sdk "git.happydns.org/checker-sdk-go/checker"
|
||||
)
|
||||
|
||||
// Provider returns a new HTTP/HTTPS observation provider.
|
||||
func Provider() sdk.ObservationProvider {
|
||||
return &httpProvider{}
|
||||
}
|
||||
|
||||
type httpProvider struct{}
|
||||
|
||||
func (p *httpProvider) Key() sdk.ObservationKey {
|
||||
return ObservationKeyHTTP
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue