mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-03 19:09:43 -04:00
22 lines
318 B
Go
22 lines
318 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdm12/ddns-updater/internal/records"
|
|
)
|
|
|
|
type Database interface {
|
|
SelectAll() (records []records.Record)
|
|
}
|
|
|
|
type UpdateForcer interface {
|
|
ForceUpdate(ctx context.Context) (errors []error)
|
|
}
|
|
|
|
type Logger interface {
|
|
Info(s string)
|
|
Warn(s string)
|
|
Error(s string)
|
|
}
|