Documentation ¶
Index ¶
- type Entries
- func GetEntriesBetweenDates(tickData JSONGetter, startDate, endDate string) (Entries, error)
- func GetEntriesBetweenDatesOnPage(tickData JSONGetter, startDate, endDate string, page int) (Entries, error)
- func GetProjectEntriesBetweenDates(tickData JSONGetter, projectID uint, startDate, endDate string) (Entries, error)
- func GetProjectEntriesBetweenDatesOnPage(tickData JSONGetter, projectID uint, startDate, endDate string, page int) (Entries, error)
- type Entry
- type JSONGetter
- type Project
- type Projects
- type Task
- type Tasks
- type TickDate
- type TickSession
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entries ¶
type Entries []Entry
func GetEntriesBetweenDates ¶
func GetEntriesBetweenDates(tickData JSONGetter, startDate, endDate string) (Entries, error)
func GetEntriesBetweenDatesOnPage ¶
func GetEntriesBetweenDatesOnPage(tickData JSONGetter, startDate, endDate string, page int) (Entries, error)
func GetProjectEntriesBetweenDates ¶
func GetProjectEntriesBetweenDates( tickData JSONGetter, projectID uint, startDate, endDate string, ) (Entries, error)
type JSONGetter ¶
type Project ¶
type Project struct { ID uint `json:"id"` Name string `json:"name"` Budget float32 `json:"budget"` DateClosed string `json:"date_closed"` Notifications bool `json:"notifications"` Billable bool `json:"billable"` Recurring bool `json:"recurring"` ClientID uint `json:"client_id"` OwnerID uint `json:"owner_id"` URL string `json:"url"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
Project models a Tick project.
func GetProject ¶
func GetProject(tickData JSONGetter, projectID int) (Project, error)
type Projects ¶
type Projects []Project
FIXME(mdr): This should probably be a map[uint]Project using the Project.ID as the key
func GetOpenProjects ¶
func GetOpenProjects(tickData JSONGetter) (Projects, error)
func GetOpenProjectsOnPage ¶
func GetOpenProjectsOnPage(tickData JSONGetter, page int) (Projects, error)
type Task ¶
type Task struct { ID uint `json:"id"` Name string `json:"name"` Budget float64 `json:"budget"` Position uint `json:"position"` ProjectID uint `json:"project_id"` DateClosed string `json:"date_closed"` Billable bool `json:"billable"` URL string `json:"url"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` TotalHours float64 `json:"total_hours"` Project Project }
Task models a Tick task associated with a particular project.
type Tasks ¶
type Tasks []Task
func GetOpenTasks ¶
func GetOpenTasks(tickData JSONGetter) (Tasks, error)
func GetOpenTasksOnPage ¶
func GetOpenTasksOnPage(tickData JSONGetter, page int) (Tasks, error)
type TickDate ¶
func (*TickDate) UnmarshalJSON ¶
type TickSession ¶
func NewTickSession ¶
func NewTickSession(apiToken, subscriptionID, userAgent string) (*TickSession, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.