36 lines
484 B
Go
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
|