Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaxMsgLen = 2000
)
Constants for the client's operation.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(actions <-chan UserAction, events chan<- DisplayEvent) (*client, error)
New creates a new instance of the client.
Types ¶
type ChatSession ¶
type DisplayEvent ¶
type DisplayEvent struct {
Type string
Timestamp string
Nick string
Content string
FullPubKey string
ShortPubKey string
IsOwnMessage bool
RelayURL string
ID string
Chat string
Payload any
}
DisplayEvent represents an event sent from the client to the TUI for display.
type StateUpdate ¶
StateUpdate is a specific payload for a DisplayEvent to update the TUI's state.
type UserAction ¶
UserAction represents an action initiated by the user from the TUI.
Click to show internal directories.
Click to hide internal directories.