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 KeyMap
- type KeyringWrapper
- type TabState
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 KeyMap ¶ added in v0.0.2
type KeyMap struct {
// General
Up key.Binding
Down key.Binding
Escape key.Binding
Confirm key.Binding
Help key.Binding
// App Binds
Quit key.Binding
Create key.Binding
Remove key.Binding
CloseTab key.Binding
DumpScreen key.Binding
// Tab Binds
Next key.Binding
Previous key.Binding
// Chat Binds
InsertMode key.Binding
InspectMode key.Binding
ChatPopUp key.Binding
GoToTop key.Binding
GoToBottom key.Binding
DumpChat key.Binding
QuickTimeout key.Binding
CopyMessage key.Binding
// Unban Request
PrevPage key.Binding
NextPage key.Binding
PrevFilter key.Binding
NextFilter key.Binding
Deny key.Binding
Approve key.Binding
// Account Binds
MarkLeader key.Binding
}
func BuildDefaultKeyMap ¶ added in v0.0.4
func BuildDefaultKeyMap() KeyMap
func CreateReadKeyMap ¶ added in v0.0.2
type KeyringWrapper ¶ added in v0.0.10
type KeyringWrapper struct{}
func (KeyringWrapper) Delete ¶ added in v0.0.10
func (k KeyringWrapper) Delete(service, user 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
Click to show internal directories.
Click to hide internal directories.