Documentation
¶
Index ¶
- Variables
- type Account
- type AccountProvider
- func (a AccountProvider) Add(account Account) error
- func (a AccountProvider) GetAccountBy(id string) (Account, error)
- func (a AccountProvider) GetAllAccounts() ([]Account, error)
- func (a AccountProvider) GetMainAccount() (Account, error)
- func (a AccountProvider) MarkAccountAsMain(id string) error
- func (a AccountProvider) Remove(id string) error
- func (a AccountProvider) UpdateTokensFor(id, accessToken, refreshToken string) error
- type AppState
- type BlockSettings
- type ChatSettings
- type CustomCommand
- type KeyMap
- type KeyringWrapper
- type ModerationSettings
- type Settings
- type TabState
- type Theme
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAccountNotFound = errors.New("account not found")
Functions ¶
This section is empty.
Types ¶
type AccountProvider ¶
type AccountProvider struct {
// contains filtered or unexported fields
}
func NewAccountProvider ¶
func NewAccountProvider(keychain keyring.Keyring) AccountProvider
func (AccountProvider) Add ¶
func (a AccountProvider) Add(account Account) error
func (AccountProvider) GetAccountBy ¶
func (a AccountProvider) GetAccountBy(id string) (Account, error)
func (AccountProvider) GetAllAccounts ¶
func (a AccountProvider) GetAllAccounts() ([]Account, error)
func (AccountProvider) GetMainAccount ¶
func (a AccountProvider) GetMainAccount() (Account, error)
func (AccountProvider) MarkAccountAsMain ¶
func (a AccountProvider) MarkAccountAsMain(id string) error
func (AccountProvider) Remove ¶
func (a AccountProvider) Remove(id string) error
func (AccountProvider) UpdateTokensFor ¶
func (a AccountProvider) UpdateTokensFor(id, accessToken, refreshToken string) error
type BlockSettings ¶ added in v0.6.0
type ChatSettings ¶ added in v0.4.0
type ChatSettings struct {
GraphicEmotes bool `yaml:"graphic_emotes"`
}
type CustomCommand ¶ added in v0.5.1
type KeyMap ¶ added in v0.0.2
type KeyMap struct { // General Up key.Binding `yaml:"up"` Down key.Binding `yaml:"down"` Escape key.Binding `yaml:"escape"` Confirm key.Binding `yaml:"confirm"` Help key.Binding `yaml:"help"` // App Binds Quit key.Binding `yaml:"quit"` Create key.Binding `yaml:"create"` Remove key.Binding `yaml:"remove"` CloseTab key.Binding `yaml:"close_tab"` DumpScreen key.Binding `yaml:"dump_screen"` // used by lists, and join input type switch // Tab Binds Next key.Binding `yaml:"next"` Previous key.Binding `yaml:"previous"` // Chat Binds InsertMode key.Binding `yaml:"insert_mode"` InspectMode key.Binding `yaml:"inspect_mode"` ChatPopUp key.Binding `yaml:"chat_pop_up"` ChannelPopUp key.Binding `yaml:"channel_pop_up"` GoToTop key.Binding `yaml:"go_to_top"` GoToBottom key.Binding `yaml:"go_to_bottom"` DumpChat key.Binding `yaml:"dump_chat"` QuickTimeout key.Binding `yaml:"quick_timeout"` CopyMessage key.Binding `yaml:"copy_message"` SearchMode key.Binding `yaml:"search_mode"` QuickSent key.Binding `yaml:"quick_sent"` // Unban Request UnbanRequestMode key.Binding `yaml:"unban_request_mode"` PrevPage key.Binding `yaml:"prev_page"` NextPage key.Binding `yaml:"next_page"` PrevFilter key.Binding `yaml:"prev_filter"` NextFilter key.Binding `yaml:"next_filter"` Deny key.Binding `yaml:"deny"` Approve key.Binding `yaml:"approve"` // Account Binds MarkLeader key.Binding `yaml:"mark_leader"` }
func BuildDefaultKeyMap ¶ added in v0.0.4
func BuildDefaultKeyMap() KeyMap
func CreateReadKeyMap ¶ added in v0.0.2
func (*KeyMap) MarshalYAML ¶ added in v0.3.0
func (*KeyMap) UnmarshalYAML ¶ added in v0.3.0
type KeyringWrapper ¶ added in v0.0.10
type KeyringWrapper struct {
// contains filtered or unexported fields
}
func NewKeyringWrapper ¶ added in v0.6.0
func NewKeyringWrapper() *KeyringWrapper
func (KeyringWrapper) Delete ¶ added in v0.0.10
func (k KeyringWrapper) Delete(service, user string) error
func (KeyringWrapper) DeleteAll ¶ added in v0.5.0
func (k KeyringWrapper) DeleteAll(service string) error
func (KeyringWrapper) Get ¶ added in v0.0.10
func (k KeyringWrapper) Get(service, user string) (string, error)
func (KeyringWrapper) Set ¶ added in v0.0.10
func (k KeyringWrapper) Set(service, user, password string) error
type ModerationSettings ¶ added in v0.4.0
type Settings ¶ added in v0.4.0
type Settings struct { VerticalTabList bool `yaml:"vertical_tab_list"` Moderation ModerationSettings `yaml:"moderation"` Chat ChatSettings `yaml:"chat"` CustomCommands []CustomCommand `yaml:"custom_commands"` BlockSettings BlockSettings `yaml:"block_settings"` }
func BuildDefaultSettings ¶ added in v0.4.0
func BuildDefaultSettings() Settings
func SettingsFromDisk ¶ added in v0.4.0
func (Settings) BuildCustomSuggestionMap ¶ added in v0.5.1
type Theme ¶ added in v0.5.0
type Theme struct { SevenTVEmoteColor string `yaml:"seven_tv_emote_color"` TwitchTVEmoteColor string `yaml:"twitch_tv_emote_color"` BetterTTVEmoteColor string `yaml:"better_ttv_emote_color"` InputPromptColor string `yaml:"input_prompt_color"` ChatStreamerColor string `yaml:"chat_streamer_color"` ChatVIPColor string `yaml:"chat_vip_color"` ChatSubColor string `yaml:"chat_sub_color"` ChatTurboColor string `yaml:"chat_turbo_color"` ChatModeratorColor string `yaml:"chat_moderator_color"` ChatIndicatorColor string `yaml:"chat_indicator_color"` ChatSubAlertColor string `yaml:"chat_sub_alert_color"` ChatNoticeAlertColor string `yaml:"chat_notice_alert_color"` ChatClearChatColor string `yaml:"chat_clear_chat_color"` ChatErrorColor string `yaml:"chat_error_color"` ListSelectedColor string `yaml:"list_selected_color"` ListLabelColor string `yaml:"list_label_color"` StatusColor string `yaml:"status_color"` ChatuinoSplashColor string `yaml:"chatuino_splash_color"` SplashHighlightColor string `yaml:"splash_highlight_color"` TabHeaderBackgroundColor string `yaml:"tab_header_background_color"` TabHeaderActiveBackgroundColor string `yaml:"tab_header_active_background_color"` InspectBorderColor string `yaml:"inspect_border_color"` ListBackgroundColor string `yaml:"list_background_color"` ListFontColor string `yaml:"list_font_color"` }
func BuildDefaultTheme ¶ added in v0.5.0
func BuildDefaultTheme() Theme
func ThemeFromDisk ¶ added in v0.5.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.