Documentation ¶
Index ¶
- Constants
- type Activities
- type ActivitiesResponse
- type Activity
- type Client
- func (c *Client) AddTimeEntry(entry TimeEntryPost) (*TimeEntry, error)
- func (c *Client) DeleteTimeEntry(id int) error
- func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error)
- func (c *Client) GetActivities() (Activities, error)
- func (c *Client) GetIssue(id int64) (*Issue, error)
- func (c *Client) GetIssues(queryParams string) ([]Issue, error)
- func (c *Client) GetMyIssues() ([]Issue, error)
- func (c *Client) GetMyWatchedIssues() ([]Issue, error)
- func (c *Client) GetProject(id int64) (*Project, error)
- func (c *Client) GetProjects() ([]Project, error)
- func (c *Client) GetSearchResults(query string, offset, limit int) ([]SearchItem, int, error)
- func (c *Client) GetTimeEntries(queryParams string) ([]TimeEntry, error)
- func (c *Client) GetUser() (*User, error)
- func (c *Client) NewAuthRequest(ctx context.Context, username, password string) (*http.Request, error)
- type DateTime
- type Entity
- type EntityId
- type Issue
- type IssueResponse
- type IssuesResponse
- type Parent
- type Project
- type ProjectResponse
- type ProjectsResponse
- type SearchItem
- type SearchResponse
- type TimeEntriesResponse
- type TimeEntry
- type TimeEntryBody
- type TimeEntryPost
- type TimeEntryResponse
- type User
- type UserApiResponse
Constants ¶
View Source
const DateTimeFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activities ¶
type Activities []Activity
func (Activities) Names ¶
func (acts Activities) Names() []string
type ActivitiesResponse ¶
type ActivitiesResponse struct {
Activities Activities `json:"time_entry_activities"`
}
type Client ¶
func (*Client) AddTimeEntry ¶
func (c *Client) AddTimeEntry(entry TimeEntryPost) (*TimeEntry, error)
func (*Client) DeleteTimeEntry ¶
func (*Client) GetActivities ¶
func (c *Client) GetActivities() (Activities, error)
func (*Client) GetMyIssues ¶
func (*Client) GetMyWatchedIssues ¶
func (*Client) GetProjects ¶
func (*Client) GetSearchResults ¶
func (*Client) GetTimeEntries ¶
type IssueResponse ¶
type IssueResponse struct {
Issue Issue `json:"issue"`
}
type IssuesResponse ¶
type IssuesResponse struct {
Issues []Issue `json:"issues"`
}
type ProjectResponse ¶
type ProjectResponse struct {
Project Project `json:"project"`
}
type ProjectsResponse ¶
type ProjectsResponse struct {
Projects []Project `json:"projects"`
}
type SearchItem ¶
type SearchResponse ¶
type SearchResponse struct { SearchItems []SearchItem `json:"results"` TotalCount int `json:"total_count"` }
type TimeEntriesResponse ¶
type TimeEntriesResponse struct {
TimeEntries []TimeEntry `json:"time_entries"`
}
type TimeEntry ¶
type TimeEntry struct { Id int64 `json:"id"` Project Entity `json:"project"` Issue EntityId `json:"issue"` User Entity `json:"user"` Activity Entity `json:"activity"` Hours float64 `json:"hours"` Comments string `json:"comments"` SpentOn DateTime `json:"spent_on"` CreatedOn time.Time `json:"created_on"` UpdatedOn time.Time `json:"updated_on"` }
type TimeEntryBody ¶
type TimeEntryBody struct {
TimeEntry TimeEntryPost `json:"time_entry"`
}
type TimeEntryPost ¶
type TimeEntryResponse ¶
type TimeEntryResponse struct {
TimeEntry TimeEntry `json:"time_entry"`
}
type UserApiResponse ¶
type UserApiResponse struct {
User User `json:"user"`
}
Click to show internal directories.
Click to hide internal directories.