http

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: AGPL-3.0 Imports: 12 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"
	UriProject     = "%s/workspaces/%s/projects"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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) GetClients

func (t *TogglClientGateway) GetClients(filter string) (toggl.TogglClients, error)

type TogglProjectGateway

type TogglProjectGateway struct {
}

func (*TogglProjectGateway) CreateProject

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

func (*TogglProjectGateway) GetProjects

type TogglTimeEntriesGateway

type TogglTimeEntriesGateway struct {
}

func (*TogglTimeEntriesGateway) GetTimeEntries

func (t *TogglTimeEntriesGateway) GetTimeEntries(start, end time.Time) (toggl.TogglTimeEntries, error)

Jump to

Keyboard shortcuts

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