appstate

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// KeyAppVersion is the map key for the application version
	KeyAppVersion = "app_version"
	// KeyRunningTimesheet is the map key for the running timesheet, if any
	KeyRunningTimesheet = "running_timesheet"
)

Variables

This section is empty.

Functions

func ActionLoop

func ActionLoop(quitChannel chan bool)

ActionLoop is a goroutine that periodically updates the running timesheet object in the appstate map

func GetLastError added in v0.3.1

func GetLastError() error

GetLastError returns the last timesheet status error

func GetLastState

func GetLastState() int

GetLastState returns the last timesheet load state

func GetRunningTimesheet

func GetRunningTimesheet() *models.TimesheetData

GetRunningTimesheet gets the running timesheet object

func Map

func Map() *sync.Map

Map allows direct access to the synchronized map

func Observables

func Observables() map[string]rxgo.Observable

Observables returns a map of the available observables

func SetRunningTimesheet

func SetRunningTimesheet(newTimesheet *models.TimesheetData)

SetRunningTimesheet sets the timesheet object

Types

This section is empty.

Jump to

Keyboard shortcuts

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