accountui

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountProvider

type AccountProvider interface {
	GetAllAccounts() ([]save.Account, error)
	UpdateTokensFor(id, accessToken, refreshToken string) error
	MarkAccountAsMain(id string) error
	Remove(id string) error
	Add(account save.Account) error
}

type List

type List struct {
	// contains filtered or unexported fields
}

func NewList

func NewList(clientID, apiHost string, accountProvider AccountProvider) List

func (List) Init

func (l List) Init() tea.Cmd

func (List) Update

func (l List) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (List) View

func (l List) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL