porkbacon/internal/ui/messages/messages.go
2026-01-26 21:45:35 +00:00

36 lines
484 B
Go

package messages
import "git.juancwu.dev/juancwu/porkbacon/internal/porkbun"
type Page int
const (
PageLogin Page = iota
PageMenu
PageListDomains
PageDomainDetails
PageDomainMenu
PageDNSList
)
type SwitchPageMsg struct {
Page Page
}
type SessionReadyMsg struct {
Client *porkbun.Client
}
type ListDomainsMsg struct{}
type DomainSelectedMsg struct {
Domain *porkbun.Domain
}
type DNSRetrieveMsg struct {
Domain string
}
type RefreshMsg struct{}
type ErrorMsg error