Documentation
¶
Index ¶
Constants ¶
View Source
const ListHeight = 14
Variables ¶
View Source
var (
ChatUserNameStyle = lipgloss.NewStyle().Bold(true)
)
View Source
var CloseChatConn bool = false
Functions ¶
func CheckToken ¶
func CheckToken() error
func ConnectToChannel ¶
func GetChannels ¶
func ReadMessages ¶
Types ¶
type Model ¶
type Model struct {
Spinner spinner.Model
Viewport viewport.Model
Textarea textarea.Model
SenderStyle lipgloss.Style
Quitting bool
CurrentChannel string
Messages []string
State ModelState
List list.Model
SelectedChannel string
TextInput textinput.Model
Err error
LoadingString string
ChatMessage string
// contains filtered or unexported fields
}
func InitialModel ¶
func InitialModel() Model
type ModelState ¶
type ModelState int
const ( ModelStateMain ModelState = iota ModelStatePlaying ModelStateLoading ModelStateError ModelStatePlayNoneFollowed )
Click to show internal directories.
Click to hide internal directories.