violet/utils/fake/fake-domains.go

14 lines
411 B
Go
Raw Permalink Normal View History

package fake
2023-07-22 01:11:47 +01:00
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{}