TogglRichPresence

package module
v0.0.0-...-ffb9ce6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 8 Imported by: 0

README

Fork of TogglRichPresence

Forked from https://github.com/StormFireFox1/TogglRichPresence check it for installation and other info

Changes

  • Uses project name as the icon
  • Doesn't display projects or tags

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordWrapper

type DiscordWrapper struct {
	// contains filtered or unexported fields
}

func InitializeDiscordWrapper

func InitializeDiscordWrapper(appId string, defaultIcon string) DiscordWrapper

func (DiscordWrapper) RefreshRichPresenceToggl

func (w DiscordWrapper) RefreshRichPresenceToggl(t TogglWrapper)

func (DiscordWrapper) RestartWrapper

func (w DiscordWrapper) RestartWrapper()

func (DiscordWrapper) SetActivity

func (w DiscordWrapper) SetActivity(description, project string)

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

type TogglWrapper

type TogglWrapper struct {
	// contains filtered or unexported fields
}

func InitializeTogglWrapper

func InitializeTogglWrapper(apiKey string) TogglWrapper

Initialize basically constructs the TogglWrapper.

Adds a client struct to the TogglWrapper, and sets the API key for Toggl.

func (TogglWrapper) CurrentTimer

func (w TogglWrapper) CurrentTimer() (Timer, error)

func (TogglWrapper) StopTimer

func (w TogglWrapper) StopTimer()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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