temporaltui

package
v0.0.420 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchWorkflowDetails

func FetchWorkflowDetails(key WorkflowKey, client temporalClient.Client) tea.Cmd

func FetchWorkflowExecutions

func FetchWorkflowExecutions(client temporalClient.Client) tea.Cmd

func GetAllPageConfigs

func GetAllPageConfigs(width, height int, copySavePath bool) map[Page]page.Config

func GetPageKeyHelp

func GetPageKeyHelp(currentPage Page, filterFocused, filterApplied, saving, enteringInput bool) string

func PrettifyLine

func PrettifyLine(l string, p Page) tea.Cmd

func UpdatePageDataWithDelay

func UpdatePageDataWithDelay(id int, p Page, d time.Duration) tea.Cmd

Types

type Page

type Page int8
const (
	Unset Page = iota
	WorkflowsPage
	WorkflowDetailsPage
	WorkflowTermPage
)

func (Page) Backward

func (p Page) Backward() Page

func (Page) DoesLoad

func (p Page) DoesLoad() bool

func (Page) DoesReload

func (p Page) DoesReload() bool

func (Page) Forward

func (p Page) Forward() Page

func (Page) GetFilterPrefix

func (p Page) GetFilterPrefix(workflowID string) string

func (Page) LoadingString

func (p Page) LoadingString() string

func (Page) String

func (p Page) String() string

type PageLoadedMsg

type PageLoadedMsg struct {
	Page        Page
	TableHeader []string
	AllPageRows []page.Row
}

type UpdatePageDataMsg

type UpdatePageDataMsg struct {
	ID   int
	Page Page
}

type WorkflowKey

type WorkflowKey struct {
	WorkflowID        string
	RunID             string
	ParentNamespaceID string
}

func WorkflowKeyFromString

func WorkflowKeyFromString(key string) WorkflowKey

Jump to

Keyboard shortcuts

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