timetask

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(username, password string) (client *http.Client, err error)

func RequestModules added in v0.1.0

func RequestModules(
	client http.Client,
	time_entry TimeEntry,
) (string, error)

func SubmitTimeEntry added in v0.1.0

func SubmitTimeEntry(client http.Client, time_entry TimeEntry) error

Types

type Module

type Module struct {
	ID   int    `xml:"moduleid"`
	Name string `xml:"modulename"`
}

func ModuleParseXML added in v0.1.0

func ModuleParseXML(xml_str string) ([]Module, error)

type Profile added in v0.1.0

type Profile struct {
	PersonID int `toml:"person_id"`
}

type Project

type Project struct {
	Client   int
	Project  int
	Module   int
	Task     int
	WorkType int `toml:"work_type"`
	Billable bool
}

type TimeEntry

type TimeEntry struct {
	PersonID    int
	Client      int
	Project     int
	Module      int
	Task        int
	WorkType    int
	Date        time.Time
	Time        float64
	Billable    bool
	Description string
}

func NewTimeEntry added in v0.1.0

func NewTimeEntry(
	profile Profile,
	project Project,
	date time.Time,
	time float64,
	description string,
) TimeEntry

Jump to

Keyboard shortcuts

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