timeline

package
v0.0.0-...-3d3caa2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TIMELINE_ERROR_ALREADY_STARTED = errors.New("timeline already started")
)

Functions

This section is empty.

Types

type Timeline

type Timeline struct {
	Id       uint16
	Gap      time.Duration
	JobDict  map[int64]map[int64]func()
	JobIndex map[int64]int64
	// contains filtered or unexported fields
}

func CreateTimeline

func CreateTimeline(index uint16, gap time.Duration) (*Timeline, error)

func GetTimeline

func GetTimeline(index uint16) *Timeline

func (*Timeline) Register

func (t *Timeline) Register(tm time.Time, f func()) int64

func (*Timeline) RegisterInt

func (t *Timeline) RegisterInt(tm int64, f func()) int64

func (*Timeline) Start

func (t *Timeline) Start()

func (*Timeline) UnRegister

func (t *Timeline) UnRegister(id int64)

Jump to

Keyboard shortcuts

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