seperate dns retrieval into its own model

This commit is contained in:
juancwu 2026-01-23 19:52:01 +00:00
commit a6bcb9be38
5 changed files with 179 additions and 72 deletions

View file

@ -8,6 +8,7 @@ const (
PageLogin Page = iota
PageMenu
PageListDomains
PageDNSRetrieve
)
type SwitchPageMsg struct {
@ -18,7 +19,10 @@ type SessionReadyMsg struct {
Client *porkbun.Client
}
type ListDomainsMsg struct {
type ListDomainsMsg struct{}
type DNSRetrieveMsg struct {
Domain string
}
type ErrorMsg error