Documentation
¶
Index ¶
- type App
- type AppContext
- type CollectionList
- type CollectionListItem
- type CommandPallete
- type ContentView
- type JetStreamEventView
- type JetStreamView
- func (m *JetStreamView) AddEvent(evt *models.Event) tea.Cmd
- func (m *JetStreamView) Clear() tea.Cmd
- func (m *JetStreamView) Init() tea.Cmd
- func (m *JetStreamView) Listen() tea.Cmd
- func (m *JetStreamView) Running() bool
- func (m *JetStreamView) SetSize(w, h int)
- func (m *JetStreamView) Start(cxs, dids []string, cursor *int64) tea.Cmd
- func (m *JetStreamView) Stop() tea.Cmd
- func (m *JetStreamView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *JetStreamView) View() string
- type RecordListItem
- type RecordView
- type RecordsList
- type RepoView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppContext ¶
type AppContext struct {
// contains filtered or unexported fields
}
type CollectionList ¶
type CollectionList struct {
// contains filtered or unexported fields
}
func NewCollectionList ¶
func NewCollectionList(collections []string) *CollectionList
func (*CollectionList) Init ¶
func (cl *CollectionList) Init() tea.Cmd
func (*CollectionList) View ¶
func (cl *CollectionList) View() string
type CollectionListItem ¶
type CollectionListItem struct {
Name string
}
func (CollectionListItem) Description ¶
func (c CollectionListItem) Description() string
func (CollectionListItem) FilterValue ¶
func (c CollectionListItem) FilterValue() string
func (CollectionListItem) Title ¶
func (c CollectionListItem) Title() string
type CommandPallete ¶
type CommandPallete struct {
// contains filtered or unexported fields
}
func (*CommandPallete) Init ¶
func (c *CommandPallete) Init() tea.Cmd
func (*CommandPallete) SetSize ¶
func (c *CommandPallete) SetSize(w, h int)
func (*CommandPallete) View ¶
func (c *CommandPallete) View() string
type ContentView ¶
type ContentView struct {
// contains filtered or unexported fields
}
ContentView wraps a scrollable viewport with a header line.
func (*ContentView) Set ¶
func (v *ContentView) Set(header, content string)
func (*ContentView) SetSize ¶
func (v *ContentView) SetSize(w, h int)
type JetStreamEventView ¶
type JetStreamEventView struct {
ContentView
// contains filtered or unexported fields
}
func NewJetEventView ¶
func NewJetEventView(preview bool) *JetStreamEventView
func (*JetStreamEventView) Init ¶
func (v *JetStreamEventView) Init() tea.Cmd
func (*JetStreamEventView) SetEvent ¶
func (v *JetStreamEventView) SetEvent(evt *models.Event)
func (*JetStreamEventView) View ¶
func (v *JetStreamEventView) View() string
type JetStreamView ¶
type JetStreamView struct {
// contains filtered or unexported fields
}
func NewJetStreamView ¶
func NewJetStreamView(jc *at.JetStreamClient) *JetStreamView
func (*JetStreamView) Clear ¶
func (m *JetStreamView) Clear() tea.Cmd
func (*JetStreamView) Init ¶
func (m *JetStreamView) Init() tea.Cmd
func (*JetStreamView) Listen ¶
func (m *JetStreamView) Listen() tea.Cmd
func (*JetStreamView) Running ¶
func (m *JetStreamView) Running() bool
func (*JetStreamView) SetSize ¶
func (m *JetStreamView) SetSize(w, h int)
func (*JetStreamView) Start ¶
func (m *JetStreamView) Start(cxs, dids []string, cursor *int64) tea.Cmd
func (*JetStreamView) Stop ¶
func (m *JetStreamView) Stop() tea.Cmd
func (*JetStreamView) View ¶
func (m *JetStreamView) View() string
type RecordListItem ¶
type RecordListItem struct {
// contains filtered or unexported fields
}
func NewRecordListItem ¶
func NewRecordListItem(r *at.Record) RecordListItem
func (RecordListItem) Description ¶
func (r RecordListItem) Description() string
func (RecordListItem) FilterValue ¶
func (r RecordListItem) FilterValue() string
func (RecordListItem) Title ¶
func (r RecordListItem) Title() string
type RecordView ¶
type RecordView struct {
ContentView
// contains filtered or unexported fields
}
func NewRecordView ¶
func NewRecordView(preview bool) *RecordView
func (*RecordView) Init ¶
func (rv *RecordView) Init() tea.Cmd
func (*RecordView) SetRecord ¶
func (rv *RecordView) SetRecord(record *at.Record)
func (*RecordView) View ¶
func (rv *RecordView) View() string
type RecordsList ¶
type RecordsList struct {
// contains filtered or unexported fields
}
func NewRecordsList ¶
func NewRecordsList(records []*at.Record) *RecordsList
func (*RecordsList) Init ¶
func (m *RecordsList) Init() tea.Cmd
func (*RecordsList) SetRecords ¶
func (rl *RecordsList) SetRecords(records []*at.Record) tea.Cmd
func (*RecordsList) SetSize ¶
func (rl *RecordsList) SetSize(w, h int)
func (*RecordsList) View ¶
func (rl *RecordsList) View() string
Click to show internal directories.
Click to hide internal directories.