console

package
v0.0.0-...-b736b2e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_NONE        = 0
	STATUS_IN_PROGRESS = 1
	STATUS_FINISHED    = 2
	STATUS_CANCELLED   = 3

	PGE_CONSOLE    = 1
	PGE_LIST_TASKS = 2

	CMD_GOTO_CREATE_TASK            = 1
	CMD_GOTO_DELETE_TASK            = 2
	CMD_GOTO_UPDATE_TASK            = 3
	CMD_GOTO_PGE_LIST_TASKS         = 4
	CMD_GOTO_CONSOLE                = 5
	CMD_LIST_TASK                   = 6
	CMD_LIST_TAKS_NEXT_PAGE         = 7
	CMD_LIST_TAKS_PREV_PAGE         = 8
	CMD_CREATE_TASK                 = 9
	CMD_LIST_TAKS_FILTER_NAME       = 10
	CMD_LIST_TAKS_FILTER_STATUS     = 11
	CMD_LIST_TAKS_FILTER_CURR_WEEK  = 12
	CMD_LIST_TAKS_FILTER_CURR_MONTH = 13

	CMD_IGNORE = -1
	CMD_EXIT   = -2
)

Variables

This section is empty.

Functions

func LaunchConsole

func LaunchConsole() error

Types

type Command

type Command struct {
	Cmd     int
	Payload any
}

type ConsoleLifecycleCallback

type ConsoleLifecycleCallback func() error

type ListTaskFilter

type ListTaskFilter struct {
	Name             string
	Status           int
	CtimeOpen        time.Time
	CtimeClose       time.Time
	ActualStartOpen  time.Time
	ActualStartClose time.Time
	ExpectedEndOpen  time.Time
	ExpectedEndClose time.Time
	ActualEndOpen    time.Time
	ActualEndClose   time.Time
}

type Task

type Task struct {
	Id          int
	Name        string
	Status      int
	Ctime       time.Time
	ActualStart *time.Time
	ExpectedEnd *time.Time
	ActualEnd   *time.Time
}

Jump to

Keyboard shortcuts

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