mirror of
https://github.com/1f349/violet.git
synced 2024-11-22 03:11:44 +00:00
22 lines
392 B
Go
22 lines
392 B
Go
|
package utils
|
||
|
|
||
|
import "crypto/tls"
|
||
|
|
||
|
type DomainProvider interface {
|
||
|
IsValid(host string) bool
|
||
|
Put(domain string, active bool)
|
||
|
Delete(domain string)
|
||
|
Compile()
|
||
|
}
|
||
|
|
||
|
type AcmeChallengeProvider interface {
|
||
|
Get(domain, key string) string
|
||
|
Put(domain, key, value string)
|
||
|
Delete(domain, key string)
|
||
|
}
|
||
|
|
||
|
type CertProvider interface {
|
||
|
GetCertForDomain(domain string) *tls.Certificate
|
||
|
Compile()
|
||
|
}
|