Documentation
¶
Index ¶
- Constants
- type CastsModel
- func (m *CastsModel) GetCast(cursor int) *fctools.Cast
- func (m *CastsModel) GetItemInFocus() string
- func (m *CastsModel) GetStatus() CastsStatus
- func (m *CastsModel) Init() tea.Cmd
- func (m *CastsModel) IsFocus() bool
- func (m *CastsModel) LoadCasts(fid uint64, hash []byte) *CastsModel
- func (m *CastsModel) LoadFid(fid uint64) *CastsModel
- func (m *CastsModel) Quit() (tea.Model, tea.Cmd)
- func (m *CastsModel) SetFocus(onoff bool, idx int)
- func (m *CastsModel) SetResultsCount(count uint32)
- func (m *CastsModel) SetView(v View)
- func (m *CastsModel) Status() (uint64, []byte, View)
- func (m *CastsModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *CastsModel) View() string
- func (m *CastsModel) ViewCasts() string
- func (m *CastsModel) WindowHeight() int
- type CastsStatus
- type LoadCastId
- type LoadFid
- type MsgUpdateView
- type StatusBar
- func (s *StatusBar) GetStatus() string
- func (s *StatusBar) Height() int
- func (s *StatusBar) Init() tea.Cmd
- func (s *StatusBar) SetHeight(h int) *StatusBar
- func (s *StatusBar) SetStatus(status string) *StatusBar
- func (s *StatusBar) SetText(t string) *StatusBar
- func (s *StatusBar) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (s *StatusBar) View() string
- type UpdateStatusBar
- type View
- type ViewType
Constants ¶
View Source
const FARCASTER_EPOCH int64 = 1609459200
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CastsModel ¶
type CastsModel struct {
// contains filtered or unexported fields
}
func NewCastsModel ¶
func NewCastsModel() *CastsModel
func (*CastsModel) GetItemInFocus ¶
func (m *CastsModel) GetItemInFocus() string
func (*CastsModel) GetStatus ¶
func (m *CastsModel) GetStatus() CastsStatus
func (*CastsModel) Init ¶
func (m *CastsModel) Init() tea.Cmd
func (*CastsModel) IsFocus ¶
func (m *CastsModel) IsFocus() bool
func (*CastsModel) LoadCasts ¶
func (m *CastsModel) LoadCasts(fid uint64, hash []byte) *CastsModel
func (*CastsModel) LoadFid ¶
func (m *CastsModel) LoadFid(fid uint64) *CastsModel
func (*CastsModel) SetFocus ¶
func (m *CastsModel) SetFocus(onoff bool, idx int)
func (*CastsModel) SetResultsCount ¶
func (m *CastsModel) SetResultsCount(count uint32)
func (*CastsModel) SetView ¶
func (m *CastsModel) SetView(v View)
func (*CastsModel) View ¶
func (m *CastsModel) View() string
func (*CastsModel) ViewCasts ¶
func (m *CastsModel) ViewCasts() string
func (*CastsModel) WindowHeight ¶
func (m *CastsModel) WindowHeight() int
type CastsStatus ¶
type CastsStatus struct {
Fid uint64
Hash []byte
Width int
Height int
View ViewType
ViewStart int
ViewEnd int
Cursor int
Focus bool
ActiveField int
}
func (CastsStatus) String ¶
func (s CastsStatus) String() string
type LoadCastId ¶
type MsgUpdateView ¶
type MsgUpdateView = View
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func NewStatusBar ¶
func NewStatusBar() *StatusBar
Click to show internal directories.
Click to hide internal directories.