Documentation
¶
Index ¶
- type Ctx
- func (c *Ctx) AddWaitGroup()
- func (c *Ctx) Buffer() []Match
- func (c *Ctx) DrawCh() chan []Match
- func (c *Ctx) DrawMatches(m []Match)
- func (c *Ctx) ExecQuery(v string)
- func (c *Ctx) LoopCh() chan struct{}
- func (c *Ctx) NewFilter() *Filter
- func (c *Ctx) NewInput() *Input
- func (c *Ctx) NewView() *View
- func (c *Ctx) PagingCh() chan PagingRequest
- func (c *Ctx) QueryCh() chan string
- func (c *Ctx) ReadBuffer(input io.Reader)
- func (c *Ctx) Refresh()
- func (c *Ctx) ReleaseWaitGroup()
- func (c *Ctx) Result() string
- func (c *Ctx) Terminate()
- func (c *Ctx) WaitDone()
- type Filter
- type Input
- type Match
- type PagingRequest
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ctx ¶
type Ctx struct {
// contains filtered or unexported fields
}
Ctx contains all the important data. while you can easily access data in this struct from anwyehre, only do so via channels
func (*Ctx) AddWaitGroup ¶
func (c *Ctx) AddWaitGroup()
func (*Ctx) DrawMatches ¶
func (*Ctx) PagingCh ¶
func (c *Ctx) PagingCh() chan PagingRequest
func (*Ctx) ReadBuffer ¶
func (*Ctx) ReleaseWaitGroup ¶
func (c *Ctx) ReleaseWaitGroup()
type PagingRequest ¶
type PagingRequest int
const ( ToNextLine PagingRequest = iota ToNextPage ToPrevLine ToPrevPage )
Click to show internal directories.
Click to hide internal directories.