gerrit

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GerritURLPattern = regexp.MustCompile(`^(http|https)://(.*)$`)
)

Functions

This section is empty.

Types

type GerritProject

type GerritProject struct {
	Path string

	Changes         *[]glb.ChangeInfo
	ReviewCount     int
	IncomingReviews []glb.ChangeInfo
	OutgoingReviews []glb.ChangeInfo
	// contains filtered or unexported fields
}

func NewGerritProject

func NewGerritProject(path string, gerrit *glb.Client) *GerritProject

func (*GerritProject) Refresh

func (project *GerritProject) Refresh(username string)

Refresh reloads the gerrit data via the Gerrit API

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	view.TextWidget

	GerritProjects []*GerritProject
	Idx            int
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, _ *tview.Pages, settings *Settings) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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