mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
24 lines
437 B
Go
24 lines
437 B
Go
package acme
|
|
|
|
type HTTPProvider struct {
|
|
onAuth AuthCallback
|
|
}
|
|
|
|
func NewHTTPProvider(onAuth AuthCallback) *HTTPProvider {
|
|
return &HTTPProvider{
|
|
onAuth: onAuth,
|
|
}
|
|
}
|
|
|
|
func (this *HTTPProvider) Present(domain, token, keyAuth string) error {
|
|
if this.onAuth != nil {
|
|
this.onAuth(domain, token, keyAuth)
|
|
}
|
|
//http01.ChallengePath()
|
|
return nil
|
|
}
|
|
|
|
func (this *HTTPProvider) CleanUp(domain, token, keyAuth string) error {
|
|
return nil
|
|
}
|