blob: 1dbaef5804ce675202382d980bcbc8e6dddf0dc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package core
import (
"crypto/ed25519"
"fmt"
tea "github.com/charmbracelet/bubbletea"
)
type Model struct{}
func New(privKey ed25519.PrivateKey, name string) Model {
// Connectiong to server...
// Connection failed - retrying in 3 sec...
// Connection failed - retrying in 3 sec...
return Model{}
}
func (m Model) Init() tea.Cmd {
return nil
}
func (m Model) View() string {
return fmt.Sprintf(
"%s",
"",
)
}
func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
default:
return m, nil
}
}
|