Documentation
¶
Index ¶
- type AppRuntime
- func (c *AppRuntime) ActivateNextTeam()
- func (c *AppRuntime) ActivateTeam(idx int)
- func (c *AppRuntime) AddPane(teamId, conversationId string, show bool)
- func (c *AppRuntime) AddTicker(th TickHandler)
- func (c *AppRuntime) ConnectTeam(name string)
- func (c *AppRuntime) Debug(message string)
- func (c *AppRuntime) Debugf(format string, args ...interface{})
- func (c *AppRuntime) GetActiveTeam() *connection.Connection
- func (c *AppRuntime) GetTeam(teamId string) *connection.Connection
- func (c *AppRuntime) RemovePane(p *pane.Pane)
- func (c *AppRuntime) Run() error
- func (c *AppRuntime) Stop()
- func (c *AppRuntime) TeamCount() int
- type Command
- type DateChangeLogger
- type StatusPaneTimeUpdater
- type TickHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRuntime ¶
type AppRuntime struct { sync.Mutex AppHome string Cfg *config.Config App *tview.Application Root *tview.Pages PaneController *pane.Controller // contains filtered or unexported fields }
func New ¶
func New(appHome string, title string, debug bool) (*AppRuntime, error)
New Create new AppRuntime
func (*AppRuntime) ActivateNextTeam ¶
func (c *AppRuntime) ActivateNextTeam()
func (*AppRuntime) ActivateTeam ¶
func (c *AppRuntime) ActivateTeam(idx int)
func (*AppRuntime) AddPane ¶
func (c *AppRuntime) AddPane(teamId, conversationId string, show bool)
func (*AppRuntime) AddTicker ¶
func (c *AppRuntime) AddTicker(th TickHandler)
func (*AppRuntime) ConnectTeam ¶
func (c *AppRuntime) ConnectTeam(name string)
Connect to a team, and store connection i list of connected teams
func (*AppRuntime) Debug ¶
func (c *AppRuntime) Debug(message string)
func (*AppRuntime) Debugf ¶
func (c *AppRuntime) Debugf(format string, args ...interface{})
func (*AppRuntime) GetActiveTeam ¶
func (c *AppRuntime) GetActiveTeam() *connection.Connection
func (*AppRuntime) GetTeam ¶
func (c *AppRuntime) GetTeam(teamId string) *connection.Connection
func (*AppRuntime) RemovePane ¶
func (c *AppRuntime) RemovePane(p *pane.Pane)
func (*AppRuntime) Run ¶
func (c *AppRuntime) Run() error
func (*AppRuntime) Stop ¶
func (c *AppRuntime) Stop()
func (*AppRuntime) TeamCount ¶
func (c *AppRuntime) TeamCount() int
type Command ¶
type Command interface {
Execute(ctx *AppRuntime)
}
type DateChangeLogger ¶
type DateChangeLogger struct {
// contains filtered or unexported fields
}
func (*DateChangeLogger) OnTick ¶
func (t *DateChangeLogger) OnTick(tick time.Time, tickSize time.Duration, ctx *AppRuntime)
type StatusPaneTimeUpdater ¶
type StatusPaneTimeUpdater struct {
// contains filtered or unexported fields
}
func (*StatusPaneTimeUpdater) OnTick ¶
func (t *StatusPaneTimeUpdater) OnTick(tick time.Time, tickSize time.Duration, ctx *AppRuntime)
type TickHandler ¶
type TickHandler interface {
OnTick(tick time.Time, tickSize time.Duration, ctx *AppRuntime)
}
Click to show internal directories.
Click to hide internal directories.