backend

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	GetDomain(domainName string) (db.Domain, error)
	CreateDomain() (model.DomainResponse, error)
	Renew(domain string, domainID uint, records []model.RecordRequest, version string) ([]model.FQDNTypePair, error)
	PurgeRecords(domain string, domainID uint) error
	CreateRecord(domain string, domainID uint, input model.RecordRequest) (model.RecordResponse, error)
	DeleteRecord(recordPrefix string, domain string, domainID uint) error
	StartPurgerDaemon(done <-chan struct{})
}

func NewBackend

func NewBackend(zoneID string, recordTTLSecs, purgeIntervalSecs, domainMaxAgeSecs, recordMaxAgeSecs int64, database db.Database) (Backend, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL