ptreader

package module
v0.0.0-...-913f4ea Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

ptreader

DB reader for procrastitracker.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSeconds

func FormatSeconds(seconds int64) string

FormatSeconds to format seconds to human readable format

func GetNodeTime

func GetNodeTime(n *Node) int64

GetNodeTime to get total seconds on that node

Types

type Moment

type Moment struct {
	Unixtime        int64
	Activeseconds   int
	Semiidleseconds int
	Key             int
	Lmb             int //left mouse button
	Rmb             int //right mouse button
	Scrollwheel     int
}

Moment that happened

type Node

type Node struct {
	Name     string
	TagIndex int
	Hidden   byte
	Moments  []Moment
	SubNodes []Node
}

Node record

func Read

func Read(filePath string) (*Node, error)

Read a db file

type Reader

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

Reader to read bytes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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