mirror of
https://github.com/1f349/violet.git
synced 2024-11-23 11:51:37 +00:00
14 lines
411 B
Go
14 lines
411 B
Go
package fake
|
|
|
|
import "github.com/1f349/violet/utils"
|
|
|
|
// Domains implements DomainProvider and makes sure `example.com` is valid
|
|
type Domains struct{}
|
|
|
|
func (f *Domains) IsValid(host string) bool { return host == "example.com" }
|
|
func (f *Domains) Put(string, bool) {}
|
|
func (f *Domains) Delete(string) {}
|
|
func (f *Domains) Compile() {}
|
|
|
|
var _ utils.DomainProvider = &Domains{}
|