app

package
v0.0.0-...-86f3bae Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProjectScreen

func CreateProjectScreen(p Project) image.Image

func CreateStartScreen

func CreateStartScreen(projectSummary ProjectSummary) image.Image

func StartApiServer

func StartApiServer(ctx context.Context)

Types

type AddCaptureStartHandler

type AddCaptureStartHandler struct{}

func (AddCaptureStartHandler) Handle

type AddCaptureStopHandler

type AddCaptureStopHandler struct{}

func (AddCaptureStopHandler) Handle

type AddProjectHandler

type AddProjectHandler struct {
}

func (AddProjectHandler) Handle

type CaptureTicker

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

func NewCaptureTicker

func NewCaptureTicker(ctx context.Context, captureID string) CaptureTicker

func (CaptureTicker) Start

func (ct CaptureTicker) Start()

func (CaptureTicker) Stop

func (ct CaptureTicker) Stop()

type DeleteProjectHandler

type DeleteProjectHandler struct {
}

func (DeleteProjectHandler) Handle

type GetCaptureListHandler

type GetCaptureListHandler struct{}

func (GetCaptureListHandler) Handle

type GetProjectHandler

type GetProjectHandler struct {
}

func (GetProjectHandler) Handle

type GetProjectListHandler

type GetProjectListHandler struct{}

func (GetProjectListHandler) Handle

type GetReportCapturesCurrentMonthHandler

type GetReportCapturesCurrentMonthHandler struct {
}

type GetReportCapturesTodayHandler

type GetReportCapturesTodayHandler struct{}

func (GetReportCapturesTodayHandler) Handle

type Pagination

type Pagination struct {
	Page     int
	PerPage  int
	NumItems int
}

func (Pagination) GetCurrentPageItems

func (p Pagination) GetCurrentPageItems(items interface{}) []interface{}

func (Pagination) GetLastPage

func (p Pagination) GetLastPage() int

func (Pagination) GetPageIndices

func (p Pagination) GetPageIndices() []int

func (Pagination) HasPage

func (p Pagination) HasPage(i int) bool

func (Pagination) Index

func (p Pagination) Index(itemNo int) int

func (Pagination) NextPage

func (p Pagination) NextPage() int

type Project

type Project struct {
	Name        string
	Description string
	Closed      bool
	Capture     string
}

type ProjectSummary

type ProjectSummary struct {
	Date       time.Time
	Projects   []Project
	Pagination Pagination
}

func GetProjectsOverview

func GetProjectsOverview(offset int) ProjectSummary

type SetCaptureLatestStopHandler

type SetCaptureLatestStopHandler struct{}

func (SetCaptureLatestStopHandler) Handle

type TimeToggle

type TimeToggle struct {
	Display display.UpdateChannel
	// contains filtered or unexported fields
}

func (*TimeToggle) Activate

func (a *TimeToggle) Activate()

func (TimeToggle) Deactivate

func (a TimeToggle) Deactivate()

func (TimeToggle) Dispose

func (a TimeToggle) Dispose()

func (*TimeToggle) HandleEvent

func (a *TimeToggle) HandleEvent(event keys.Event) bool

func (*TimeToggle) Init

func (a *TimeToggle) Init()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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