Documentation ¶
Index ¶
- func CreateProjectScreen(p Project) image.Image
- func CreateStartScreen(projectSummary ProjectSummary) image.Image
- func StartApiServer(ctx context.Context)
- type AddCaptureStartHandler
- type AddCaptureStopHandler
- type AddProjectHandler
- type CaptureTicker
- type DeleteProjectHandler
- type GetCaptureListHandler
- type GetProjectHandler
- type GetProjectListHandler
- type GetReportCapturesCurrentMonthHandler
- type GetReportCapturesTodayHandler
- type Pagination
- type Project
- type ProjectSummary
- type SetCaptureLatestStopHandler
- type TimeToggle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProjectScreen ¶
func CreateStartScreen ¶
func CreateStartScreen(projectSummary ProjectSummary) image.Image
func StartApiServer ¶
Types ¶
type AddCaptureStartHandler ¶
type AddCaptureStartHandler struct{}
func (AddCaptureStartHandler) Handle ¶
func (a AddCaptureStartHandler) Handle(params capture.AddStartCaptureParams) middleware.Responder
type AddCaptureStopHandler ¶
type AddCaptureStopHandler struct{}
func (AddCaptureStopHandler) Handle ¶
func (a AddCaptureStopHandler) Handle(params capture.AddStopCaptureParams) middleware.Responder
type AddProjectHandler ¶
type AddProjectHandler struct { }
func (AddProjectHandler) Handle ¶
func (a AddProjectHandler) Handle(params project.AddProjectParams) middleware.Responder
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 ¶
func (d DeleteProjectHandler) Handle(params project.DeleteProjectParams) middleware.Responder
type GetCaptureListHandler ¶
type GetCaptureListHandler struct{}
func (GetCaptureListHandler) Handle ¶
func (g GetCaptureListHandler) Handle(capture.GetCaptureListParams) middleware.Responder
type GetProjectHandler ¶
type GetProjectHandler struct { }
func (GetProjectHandler) Handle ¶
func (g GetProjectHandler) Handle(params project.GetProjectByIDParams) middleware.Responder
type GetProjectListHandler ¶
type GetProjectListHandler struct{}
func (GetProjectListHandler) Handle ¶
func (g GetProjectListHandler) Handle(project.GetProjectListParams) middleware.Responder
type GetReportCapturesCurrentMonthHandler ¶
type GetReportCapturesCurrentMonthHandler struct { }
type GetReportCapturesTodayHandler ¶
type GetReportCapturesTodayHandler struct{}
func (GetReportCapturesTodayHandler) Handle ¶
func (g GetReportCapturesTodayHandler) Handle(reports.GetReportCapturesTodayParams) middleware.Responder
type Pagination ¶
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 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 ¶
func (a SetCaptureLatestStopHandler) Handle(params capture.SetLatestStopParams) middleware.Responder
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()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.