ticker

package
v0.0.0-...-91e90d9 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	Hour       int
	Minute     int
	Second     int
	NanoSecond int
	Interval   time.Duration
}

Parameters represents the parameters needed to make the Ticker work

func (Parameters) Check

func (p Parameters) Check() error

Check if ticker parameters are correct

type Ticker

type Ticker struct {
	Timer  *time.Timer
	Params Parameters
}

Ticker represents ticker

func New

func New(params Parameters) Ticker

New creates new ticker

func (Ticker) Update

func (jt Ticker) Update()

Update updates ticker

Jump to

Keyboard shortcuts

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