Documentation
¶
Index ¶
- Constants
- type CreateProjectRequest
- type TogglClientGateway
- type TogglProjectGateway
- type TogglTimeEntriesGateway
- func (t *TogglTimeEntriesGateway) Add(timeEntry *toggl.NewTogglTimeEntry) error
- func (t *TogglTimeEntriesGateway) EditDesc(entryID int64, desc string) error
- func (t *TogglTimeEntriesGateway) Get(start, end time.Time) (toggl.TogglTimeEntries, error)
- func (t *TogglTimeEntriesGateway) GetCurrent() (*toggl.TogglTimeEntry, error)
- func (t *TogglTimeEntriesGateway) Stop(entryID int64) error
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 CreateProjectRequest ¶
type TogglClientGateway ¶
type TogglClientGateway struct { }
func (*TogglClientGateway) Get ¶ added in v0.3.0
func (t *TogglClientGateway) Get(filter *toggl.GetClientOpts) (toggl.TogglClients, error)
type TogglProjectGateway ¶
type TogglProjectGateway struct { }
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
func (t *TogglProjectGateway) Get(filter *toggl.GetProjectsOpts) (toggl.TogglProjects, error)
type TogglTimeEntriesGateway ¶
type TogglTimeEntriesGateway struct { }
func (*TogglTimeEntriesGateway) Add ¶ added in v0.3.0
func (t *TogglTimeEntriesGateway) Add(timeEntry *toggl.NewTogglTimeEntry) error
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 (t *TogglTimeEntriesGateway) Get(start, end time.Time) (toggl.TogglTimeEntries, error)
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
Click to show internal directories.
Click to hide internal directories.