major architecture refactor
This commit is contained in:
parent
4266bfbfc2
commit
f82d06dbf0
11 changed files with 636 additions and 272 deletions
20
internal/ui/messages/messages.go
Normal file
20
internal/ui/messages/messages.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package messages
|
||||
|
||||
import "git.juancwu.dev/juancwu/porkbacon/internal/porkbun"
|
||||
|
||||
type Page int
|
||||
|
||||
const (
|
||||
PageLogin Page = iota
|
||||
PageMenu
|
||||
)
|
||||
|
||||
type SwitchPageMsg struct {
|
||||
Page Page
|
||||
}
|
||||
|
||||
type SessionReadyMsg struct {
|
||||
Client *porkbun.Client
|
||||
}
|
||||
|
||||
type ErrorMsg error
|
||||
Loading…
Add table
Add a link
Reference in a new issue