Documentation
¶
Index ¶
- func Init()
- func Read()
- func SetCurrentTimeEntry(timeEntry toggl.TimeEntry)
- func SetProjects(projects toggl.Projects)
- func SetWorkspaces(workspaces toggl.Workspaces)
- func Write()
- type Cache
- func (c *Cache) GetContent() CacheContent
- func (c *Cache) Init() error
- func (c *Cache) Read() error
- func (c *Cache) SetCurrentTimeEntry(timeEntry toggl.TimeEntry)
- func (c *Cache) SetProjects(projects toggl.Projects)
- func (c *Cache) SetWorkspaces(workspaces toggl.Workspaces)
- func (c *Cache) Write() error
- type CacheContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCurrentTimeEntry ¶
func SetCurrentTimeEntry(timeEntry toggl.TimeEntry)
func SetProjects ¶
func SetProjects(projects toggl.Projects)
func SetWorkspaces ¶
func SetWorkspaces(workspaces toggl.Workspaces)
Types ¶
type Cache ¶
type Cache struct {
Filename string
Content CacheContent
}
func (*Cache) GetContent ¶
func (c *Cache) GetContent() CacheContent
func (*Cache) SetCurrentTimeEntry ¶
func (c *Cache) SetCurrentTimeEntry(timeEntry toggl.TimeEntry)
func (*Cache) SetProjects ¶
func (c *Cache) SetProjects(projects toggl.Projects)
func (*Cache) SetWorkspaces ¶
func (c *Cache) SetWorkspaces(workspaces toggl.Workspaces)
type CacheContent ¶
type CacheContent struct {
CurrentTimeEntry toggl.TimeEntry `json:"current_time_entry"`
Projects toggl.Projects `json:"projects"`
Workspaces toggl.Workspaces `json:"workspaces"`
}
func GetContent ¶
func GetContent() CacheContent
Click to show internal directories.
Click to hide internal directories.