timeentryhlp

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AliasCurrent = "current"
	AliasLast    = "last"
	AliasLatest  = "latest"
)

Variables

View Source
var ErrNoTimeEntry = errors.New("time entry was not found")

Functions

func GetLatestEntryEntry

func GetLatestEntryEntry(
	c api.Client, workspace, userID string) (dto.TimeEntryImpl, error)

GetLatestEntryEntry will return the last time entry of a user, if it exists

func GetTimeEntry

func GetTimeEntry(
	c api.Client,
	workspace,
	userID,
	id string,
) (dto.TimeEntryImpl, error)

GetTimeEntry will look for the time entry of a user for the id or alias provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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