Versions in this module Expand all Collapse all v0 v0.6.1 Jul 14, 2015 Changes in this version + var OverheadTimeline = "__overhead" + func SystemTimeglassPath() (string, error) + func SystemTimeglassPathCreateIfNotExist() (string, error) + type Block struct + Staged bool + Time time.Time + Width time.Duration + type Distributor struct + func NewDistributor() *Distributor + func (d *Distributor) Break() + func (d *Distributor) Distribute(dur time.Duration, t time.Time) + func (d *Distributor) Extract(fpath string, upto time.Time) (time.Duration, error) + func (d *Distributor) MarshalJSON() ([]byte, error) + func (d *Distributor) Register(fpath string) + func (d *Distributor) Reset(opt ResetOpts) + func (d *Distributor) Stage(fpath string, upto time.Time) + func (d *Distributor) Timelines() map[string]*Timeline + func (d *Distributor) UnmarshalJSON(b []byte) error + type Keeper struct + func NewKeeper(path string) (*Keeper, error) + func (k *Keeper) Discard(dir string) error + func (k *Keeper) Inspect(dir string) (*Timer, error) + func (k *Keeper) Load() error + func (k *Keeper) MarshalJSON() ([]byte, error) + func (k *Keeper) Measure(dir string) error + func (k *Keeper) Save() error + func (k *Keeper) Stop() + func (k *Keeper) UnmarshalJSON(b []byte) error + type ResetOpts struct + Staged bool + Unstaged bool + type Timeline struct + Blocks []*Block + func NewTimeline() *Timeline + func (tl *Timeline) Expand(w time.Duration, t time.Time) + func (tl *Timeline) Length(upto time.Time) time.Duration + func (tl *Timeline) Stage(upto time.Time) + func (tl *Timeline) Staged() time.Duration + func (tl *Timeline) Unstaged() time.Duration + type Timer struct + func NewTimer(dir string) (*Timer, error) + func (t *Timer) Dir() string + func (t *Timer) Distributor() *Distributor + func (t *Timer) Error() error + func (t *Timer) IsPaused() bool + func (t *Timer) MarshalJSON() ([]byte, error) + func (t *Timer) Pause() + func (t *Timer) Reset(opt ResetOpts) + func (t *Timer) SetSave(ch chan struct{}) + func (t *Timer) Stage(files []*vcs.StagedFile) + func (t *Timer) Start() + func (t *Timer) Stop() + func (t *Timer) Time() time.Duration + func (t *Timer) UnmarshalJSON(b []byte) error + func (t *Timer) Unpause()