Documentation
¶
Index ¶
- Variables
- func MessageFromRecord(zone string, rec libdns.Record) (dns.RR, error)
- type Server
- func (srv *Server) AppendRecords(ctx context.Context, zone string, newRecs []libdns.Record) ([]libdns.Record, error)
- func (srv *Server) DeleteRecords(ctx context.Context, zone string, deleteRecs []libdns.Record) ([]libdns.Record, error)
- func (srv *Server) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (srv *Server) Run(ctx context.Context) error
- func (srv *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)
- func (srv *Server) Shutdown(ctx context.Context) error
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecordAlreadyExists = errors.New("dns record already exists") ErrRecordNotFound = errors.New("dns record not found") )
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is used for capturing DNS requests, and storing/serving TXT records for the ACME DNS-01 challenge. It implements certmagic.ACMEDNSProvider.
func NewServer ¶
func NewServer(opts ...ServerOption) *Server
func (*Server) AppendRecords ¶
func (*Server) DeleteRecords ¶
func (*Server) GetRecords ¶
type ServerOption ¶
type ServerOption func(*Server)
func WithAddress ¶
func WithAddress(addr string) ServerOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) ServerOption
WithLogger provides a logger, which is used for HTTP related logs.
func WithSOAHostname ¶
func WithSOAHostname(soaHostname string) ServerOption
func WithStorage ¶
func WithStorage(s certmagic.Storage) ServerOption
Click to show internal directories.
Click to hide internal directories.