mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-02-25 21:43:19 -07:00
* chore: enable more linters and fix linter issues * ci: enable linter checks on all branches and disable recurring checks recurring linter checks don't make that much sense. The code & linter checks should not change on their own over night ;) * chore: update packages * Revert "chore: update packages" This reverts commit 30250bf28c4b39e9e5b3af012a4e28ab036bf9af. * chore: manually upgrade some packages
25 lines
449 B
Go
25 lines
449 B
Go
package acmedns
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type AcmednsDB interface {
|
|
Register(cidrslice Cidrslice) (ACMETxt, error)
|
|
GetByUsername(uuid.UUID) (ACMETxt, error)
|
|
GetTXTForDomain(string) ([]string, error)
|
|
Update(ACMETxtPost) error
|
|
GetBackend() *sql.DB
|
|
SetBackend(*sql.DB)
|
|
Close()
|
|
}
|
|
|
|
type AcmednsNS interface {
|
|
Start(errorChannel chan error)
|
|
SetOwnAuthKey(key string)
|
|
SetNotifyStartedFunc(func())
|
|
ParseRecords()
|
|
}
|