Documentation ¶
Index ¶
- type Menu
- func (m *Menu) Append(item *sessioninfo.SessionInfo)
- func (m *Menu) Current() *sessioninfo.SessionInfo
- func (m *Menu) DeleteByID(id uuid.UUID) bool
- func (m *Menu) Down()
- func (m *Menu) Get(idx int) (*sessioninfo.SessionInfo, bool)
- func (m *Menu) Init() error
- func (m *Menu) Items() []*sessioninfo.SessionInfo
- func (m *Menu) Len() int
- func (m *Menu) Render()
- func (m *Menu) RunTillExit()
- func (m *Menu) Up()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
Menu is a slice of sessions. It also stores selected session
func (*Menu) Append ¶
func (m *Menu) Append(item *sessioninfo.SessionInfo)
Append appends item to Menu
func (*Menu) Current ¶
func (m *Menu) Current() *sessioninfo.SessionInfo
Current returns currently selected item
func (*Menu) DeleteByID ¶
DeleteByID deletes item with correspondind ID from slice
func (*Menu) Get ¶
func (m *Menu) Get(idx int) (*sessioninfo.SessionInfo, bool)
Get returns item from Menu with given index
func (*Menu) Items ¶
func (m *Menu) Items() []*sessioninfo.SessionInfo
Items returns a slice of items in Menu
func (*Menu) RunTillExit ¶
func (m *Menu) RunTillExit()
Click to show internal directories.
Click to hide internal directories.