timer

package
v0.0.0-...-4cd9d19 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(inteval uint32, handler func(string, ...interface{}), args ...interface{}) (tkey string, err error)

func OnInit

func OnInit(s core.IService, opt ...Option) (err error)

func Remove

func Remove(key string) (err error)

Types

type ITimer

type ITimer interface {
	Add(inteval uint32, handler func(string, ...interface{}), args ...interface{}) string
	Remove(key string)
}

type Option

type Option func(*Options)

func Inteval

func Inteval(v time.Duration) Option

type Options

type Options struct {
	Inteval time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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