toggl

package
v0.0.0-...-5eac7db Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	UserAgent   string
	WorkSpaceID string
	ApiToken    string
	Logger      *logger.Logger
}

func (*Client) GetDetails

func (c *Client) GetDetails(since, until string) ([]DetailData, error)

type DetailData

type DetailData struct {
	Id              int       `json:"id"`
	Project         string    `json:"project"`
	Description     string    `json:"description"`
	ProjectHexColor string    `json:"project_hex_color"`
	Start           time.Time `json:"start"`
	End             time.Time `json:"end"`
	Duration        int       `json:"dur"` // unit: milliseconds
}

Jump to

Keyboard shortcuts

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