cmdhandler

package
v0.0.0-...-847cf6d Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cmdhandler Handles the command passed from the CLI ( package cmd ) Sends the requests to the daemon using Rest APIs over a unix socket

Index

Constants

View Source
const (
	MinTimeMins     int    = 1    // minimum time for a single shot utask
	DefaultTimeMins string = "25" // default time if no duration is specified during CLI
)

Variables

This section is empty.

Functions

func Ping

func Ping() error

Ping tries to ping the utask daemon over unix socket returns error if not successful

func Start

func Start(taskDuration int, projName string, taskName string, taskNote string) error

Start a single shot utask timer by calling daemon Rest Api over unix socket pass timer duration, task name and note to the daemon return error if unsuccessful

Types

This section is empty.

Jump to

Keyboard shortcuts

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