Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConfigNotFound = errors.New("config file not found") ErrInvalidConfig = errors.New("invalid config file") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Workspace Workspace `yaml:"workspace"`
UI UI `yaml:"ui"`
Keybindings *Keybindings `yaml:"keybindings,omitempty"`
Polling *Polling `yaml:"polling,omitempty"`
}
Config represents the application configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a config with default values
type Keybinding ¶
Keybinding represents a single keybinding configuration
type Keybindings ¶
type Keybindings struct {
Global []Keybinding `yaml:"global,omitempty"`
Chat []Keybinding `yaml:"chat,omitempty"`
Message []Keybinding `yaml:"message,omitempty"`
Init []Keybinding `yaml:"init,omitempty"`
User []Keybinding `yaml:"user,omitempty"`
Activity []Keybinding `yaml:"activity,omitempty"`
}
Keybindings contains keybinding configurations organized by scope
type Polling ¶
type Polling struct {
Enabled bool `yaml:"enabled"`
CurrentChannelInterval int `yaml:"current_channel_interval_seconds"` // Seconds
SidebarInterval int `yaml:"sidebar_interval_seconds"` // Seconds
ActivityInterval int `yaml:"activity_interval_seconds"` // Seconds
}
Polling contains polling configuration for live updates
Click to show internal directories.
Click to hide internal directories.