Versions in this module Expand all Collapse all v0 v0.0.1 Dec 10, 2023 Changes in this version + var ErrAccountNotFound = errors.New("account not found") + type Account struct + AccessToken string + CreatedAt time.Time + DisplayName string + ID string + IsAnonymous bool + IsMain bool + RefreshToken string + type AccountProvider struct + func NewAccountProvider() 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 struct + Tabs []TabState + func AppStateFromDisk() (AppState, error) + func (a *AppState) Save() error + type TabState struct + Channel string + IRCMessages []*command.PrivateMessage + IdentityID string + IsFocused bool + SelectedIndex int