pane

package
v0.0.0-...-e980239 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewController

func NewController(root *tview.Pages,
	qudFunc func(func()),
	oip func(p *Pane, i string),
	ic func(p *Pane, e *tcell.EventKey) *tcell.EventKey,
	tc func(p *Pane, input string) string,
) *Controller

func (*Controller) AddPane

func (c *Controller) AddPane(name, title, teamId string, channel *slack.Channel, show bool, statusLine func(p *Pane) string) *Pane

func (*Controller) GetActive

func (c *Controller) GetActive() *Pane

func (*Controller) GetActiveIndex

func (c *Controller) GetActiveIndex() int

func (*Controller) GetByChannelId

func (c *Controller) GetByChannelId(channelId string) *Pane

func (*Controller) GetByTeamId

func (c *Controller) GetByTeamId(teamId string) (ret []*Pane)

func (*Controller) GetFormattedActivityString

func (c *Controller) GetFormattedActivityString() string

func (*Controller) GetPanes

func (c *Controller) GetPanes() []*Pane

func (*Controller) GetSize

func (c *Controller) GetSize() int

func (*Controller) GetStatusPane

func (c *Controller) GetStatusPane() *Pane

func (*Controller) GetWindowList

func (c *Controller) GetWindowList() string

func (*Controller) IsActive

func (c *Controller) IsActive(pane *Pane) bool

func (*Controller) RemovePane

func (c *Controller) RemovePane(pane *Pane)

func (*Controller) SetActive

func (c *Controller) SetActive(pane *Pane)

func (*Controller) SetIndexActive

func (c *Controller) SetIndexActive(idx int)

func (*Controller) SetNextActive

func (c *Controller) SetNextActive()

func (*Controller) SetPrevActive

func (c *Controller) SetPrevActive()

func (*Controller) SetStatusActive

func (c *Controller) SetStatusActive()

func (*Controller) UpdateStatusBar

func (c *Controller) UpdateStatusBar()

func (*Controller) Write

func (c *Controller) Write(buffer []byte, change bool) (int, error)

type Pane

type Pane struct {
	TeamId  string
	Channel slack.Channel
	// contains filtered or unexported fields
}

func (*Pane) Changed

func (p *Pane) Changed() bool

func (*Pane) GetName

func (p *Pane) GetName() string

func (*Pane) Log

func (p *Pane) Log(mark, message string)

func (*Pane) Logf

func (p *Pane) Logf(mark, format string, args ...interface{})

func (*Pane) Notify

func (p *Pane) Notify() bool

func (*Pane) RawLog

func (p *Pane) RawLog(message string)

func (*Pane) RawLogf

func (p *Pane) RawLogf(format string, args ...interface{})

func (*Pane) ScrollToEnd

func (p *Pane) ScrollToEnd()

func (*Pane) SetNotify

func (p *Pane) SetNotify()

func (*Pane) UpdateStatus

func (p *Pane) UpdateStatus()

func (*Pane) Write

func (p *Pane) Write(buffer []byte) (int, error)

func (*Pane) WriteNoChange

func (p *Pane) WriteNoChange(buffer []byte) (int, error)

Jump to

Keyboard shortcuts

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