timer

package
v0.0.0-...-88a2057 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegFlags

func RegFlags()

Types

type Backfill

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

func (*Backfill) GetInterval

func (bf *Backfill) GetInterval() int

func (*Backfill) GetTicker

func (bf *Backfill) GetTicker() <-chan time.Time

func (*Backfill) GetTimestamp

func (bf *Backfill) GetTimestamp() int64

type Flexible

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

func (*Flexible) GetInterval

func (f *Flexible) GetInterval() int

func (*Flexible) GetTicker

func (f *Flexible) GetTicker() <-chan time.Time

func (*Flexible) GetTimestamp

func (f *Flexible) GetTimestamp() int64

type LongDurationFlag

type LongDurationFlag uint32

func (*LongDurationFlag) Set

func (ld *LongDurationFlag) Set(value string) error

func (*LongDurationFlag) String

func (ld *LongDurationFlag) String() string

type Realtime

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

func (*Realtime) GetInterval

func (r *Realtime) GetInterval() int

func (*Realtime) GetTicker

func (r *Realtime) GetTicker() <-chan time.Time

func (*Realtime) GetTimestamp

func (r *Realtime) GetTimestamp() int64

type Timer

type Timer interface {
	GetInterval() int
	GetTicker() <-chan time.Time
	GetTimestamp() int64
}

func Get

func Get(name string, id int, agents int) Timer

Jump to

Keyboard shortcuts

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