http

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UriBase                 = "https://api.track.toggl.com/api/v9"
	UriClients              = "%s/workspaces/%s/clients"
	UriTimeEntries          = "%s/me/time_entries"
	UriTimeEntriesWorkspace = "%s/workspaces/%s/time_entries"
	UriTimeEntriesID        = "%s/workspaces/%s/time_entries/%d"
	UriTimeEntriesStop      = "%s/workspaces/%s/time_entries/%d/stop"
	UriProject              = "%s/workspaces/%s/projects"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveProjectRequest added in v0.8.0

type ArchiveProjectRequest struct {
	IsActive bool `json:"active"`
}

type CreateProjectRequest

type CreateProjectRequest struct {
	Name      string `json:"name"`
	IsPrivate bool   `json:"is_private"`
	IsActive  bool   `json:"active"`
	ClientID  int64  `json:"cid"`
}

type TogglClientGateway

type TogglClientGateway struct {
}

func (*TogglClientGateway) Get added in v0.3.0

type TogglProjectGateway

type TogglProjectGateway struct {
}

func (*TogglProjectGateway) Archive added in v0.8.0

func (t *TogglProjectGateway) Archive(projectId int64) error

func (*TogglProjectGateway) Create added in v0.3.0

func (t *TogglProjectGateway) Create(projectName string, clientID int64) error

func (*TogglProjectGateway) Get added in v0.3.0

type TogglTimeEntriesGateway

type TogglTimeEntriesGateway struct {
}

func (*TogglTimeEntriesGateway) Add added in v0.3.0

func (*TogglTimeEntriesGateway) EditDesc added in v0.6.0

func (t *TogglTimeEntriesGateway) EditDesc(entryID int64, desc string) error

func (*TogglTimeEntriesGateway) Get added in v0.3.0

func (*TogglTimeEntriesGateway) GetCurrent added in v0.4.0

func (t *TogglTimeEntriesGateway) GetCurrent() (*toggl.TogglTimeEntry, error)

func (*TogglTimeEntriesGateway) Stop added in v0.4.0

func (t *TogglTimeEntriesGateway) Stop(entryID int64) error

Jump to

Keyboard shortcuts

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