view

package
v0.0.0-...-1589fda Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeChooseCommits = iota
	ModeChooseChecks
	ModeParseLogs
	ModeParseLogsFuller
	ModeParseTestsRunning
	ModeParseTestsFinished
	ModeParseTests
	ModeParseTestsFuller
)
View Source
const (
	SelectionTypeID = iota
	SelectionTypeRow
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Checks

type Checks struct {
	// contains filtered or unexported fields
}

func NewChecks

func NewChecks(svc *service.Service) *Checks

func (*Checks) Load

func (c *Checks) Load(app *tview.Application, mode int, commits []*github.RepositoryCommit, checkRunsList *github.ListCheckRunsResults, selectedCommits ...string)

func (*Checks) SetHandlers

func (c *Checks) SetHandlers(checkSuiteHandler func(suite model.CheckSuite), escChecksHandler func(key tcell.Key), selectedCommitHandler func(sha string))

type Logs

type Logs struct {
	// contains filtered or unexported fields
}

func NewLogs

func NewLogs() *Logs

func (*Logs) Load

func (c *Logs) Load(app *tview.Application, mode int, checks model.CheckSuite, logs model.Logs, detailText string, selectedRows ...Selection)

func (*Logs) SetHandlers

func (c *Logs) SetHandlers(checkSuiteHandler func(suite model.CheckSuite), escLogsHandler func(), escLogsDetailHandler func(key tcell.Key), enterHandler func(), selectedHandler func(id int), selectionChangedHandler func(txt string, row int))

func (*Logs) UpdateDetail

func (c *Logs) UpdateDetail(txt string)

type Selection

type Selection struct {
	Type  int
	Value int
}

type Tests

type Tests struct {
	// contains filtered or unexported fields
}

func NewTests

func NewTests() *Tests

func (*Tests) Load

func (v *Tests) Load(app *tview.Application, logs model.Logs, mode int, displayMode int, testDuration time.Duration, detailText string, selectedRows ...Selection)

func (*Tests) SetHandlers

func (v *Tests) SetHandlers(escHandler func(key tcell.Key), enterHandler func(), selectedHandler func(id int), selectionChangedHandler func(txt string, row int))

func (*Tests) UpdateDetail

func (v *Tests) UpdateDetail(txt string)

func (*Tests) UpdateStatus

func (v *Tests) UpdateStatus(mode int, logs model.Logs, duration time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳