timeentrygrp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package timeentrygrp maintains the group of handlers for timeEntry access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	TimeEntry time_entry.Core
	Workspace workspace.Core
	User      user.Core
}

Handlers manages the set of timeEntry endpoints.

func (Handlers) Create

Create adds a new timeEntry to the system.

func (Handlers) Delete

Delete removes a timeEntry from the system.

func (Handlers) QueryByID

func (h Handlers) QueryByID(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryByID returns a timeEntry by its ID.

func (Handlers) QueryDash

func (h Handlers) QueryDash(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryDash returns a list of time entries with paging.

func (Handlers) QueryRange

func (h Handlers) QueryRange(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryRange returns a list of time entries with paging.

func (Handlers) QueryRunning

func (h Handlers) QueryRunning(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryRunning returns a list of time entries with paging.

func (Handlers) Start

Start adds a new timeEntry to the system.

func (Handlers) Stop

Stop updates a timeEntry in the system.

func (Handlers) Update

Update updates a timeEntry in the system.

func (Handlers) UpdateTags

func (h Handlers) UpdateTags(ctx context.Context, w http.ResponseWriter, r *http.Request) error

UpdateTags updates a timeEntry in the system.

Jump to

Keyboard shortcuts

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