Documentation
¶
Index ¶
- func ListAll[T any](ctx context.Context, c *Client, path string, baseQuery map[string]string) ([]T, error)
- type APIError
- type Client
- func (c *Client) Close()
- func (c *Client) Delete(ctx context.Context, path string) error
- func (c *Client) Get(ctx context.Context, path string, query map[string]string, out any) error
- func (c *Client) Patch(ctx context.Context, path string, body any, out any) error
- func (c *Client) Post(ctx context.Context, path string, body any, out any) error
- func (c *Client) Put(ctx context.Context, path string, body any, out any) error
- func (c *Client) SetUserAgent(ua string)
- type ClientEntity
- type Project
- type Tag
- type Task
- type TimeEntry
- type TimeInterval
- type User
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetUserAgent ¶
SetUserAgent sets the User-Agent string sent with every request.
type ClientEntity ¶
type TimeEntry ¶
type TimeEntry struct {
ID string `json:"id"`
Description string `json:"description"`
ProjectID string `json:"projectId"`
ProjectName string `json:"projectName,omitempty"`
TaskID string `json:"taskId,omitempty"`
TagIDs []string `json:"tagIds,omitempty"`
Billable bool `json:"billable,omitempty"`
UserID string `json:"userId,omitempty"`
WorkspaceID string `json:"workspaceId,omitempty"`
TimeInterval TimeInterval `json:"timeInterval"`
}
func (TimeEntry) DurationSeconds ¶
type TimeInterval ¶
Click to show internal directories.
Click to hide internal directories.