timer

package
Version: v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2011 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OneMicrosecond = 1e3 // ns
	OneMillisecond = 1e6 // ns
	OneSecond      = 1e9 // ns
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tick

type Tick struct {
	Path string
	Cas  int64
	At   int64
}

func (Tick) Less

func (t Tick) Less(y interface{}) bool

type Timer

type Timer struct {
	Glob *store.Glob

	// Ticks are sent here
	C <-chan Tick
	// contains filtered or unexported fields
}

func New

func New(glob *store.Glob, interval int64, st *store.Store) *Timer

func (*Timer) Close

func (t *Timer) Close()

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL