mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-04 11:25:09 -04:00
15 lines
297 B
Go
15 lines
297 B
Go
package data
|
|
|
|
import (
|
|
"net/netip"
|
|
"time"
|
|
|
|
"github.com/qdm12/ddns-updater/internal/models"
|
|
)
|
|
|
|
type PersistentDatabase interface {
|
|
Close() error
|
|
StoreNewIP(domain, host string, ip netip.Addr, t time.Time) (err error)
|
|
GetEvents(domain, host string) (events []models.HistoryEvent, err error)
|
|
}
|