2025-01-15 23:43:44 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/tls"
|
|
|
|
|
2025-01-16 17:03:01 -05:00
|
|
|
"git.stormux.org/storm/barnard/config"
|
|
|
|
"git.stormux.org/storm/barnard/gumble/gumble"
|
|
|
|
"git.stormux.org/storm/barnard/gumble/gumbleopenal"
|
|
|
|
"git.stormux.org/storm/barnard/uiterm"
|
2025-01-15 23:43:44 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
type Barnard struct {
|
|
|
|
Config *gumble.Config
|
|
|
|
UserConfig *config.Config
|
|
|
|
Hotkeys *config.Hotkeys
|
|
|
|
Client *gumble.Client
|
|
|
|
|
|
|
|
Address string
|
|
|
|
TLSConfig tls.Config
|
|
|
|
|
|
|
|
Stream *gumbleopenal.Stream
|
|
|
|
Tx bool
|
|
|
|
Connected bool
|
|
|
|
|
|
|
|
Ui *uiterm.Ui
|
|
|
|
UiOutput uiterm.Textview
|
|
|
|
UiInput uiterm.Textbox
|
|
|
|
UiStatus uiterm.Label
|
|
|
|
UiTree uiterm.Tree
|
|
|
|
UiInputStatus uiterm.Label
|
|
|
|
SelectedChannel *gumble.Channel
|
|
|
|
selectedUser *gumble.User
|
|
|
|
|
|
|
|
notifyChannel chan []string
|
|
|
|
|
|
|
|
exitStatus int
|
|
|
|
exitMessage string
|
|
|
|
}
|