scheduler

package module
v0.0.0-...-a29b9cd Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 4 Imported by: 0

README

scheduler

A FAIRE.

Licence

MIT.


Copyright (c) 2021 mls-361.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name     string
	Disabled bool
	After    time.Duration
	Repeat   string
	Data     interface{}
}

Event AFAIRE.

type Scheduler

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

Scheduler AFAIRE.

func New

func New(ecb emitCallback) *Scheduler

New AFAIRE.

func (*Scheduler) AddEvent

func (s *Scheduler) AddEvent(e *Event) error

AddEvent AFAIRE.

func (*Scheduler) Start

func (s *Scheduler) Start()

Start AFAIRE.

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop AFAIRE.

Jump to

Keyboard shortcuts

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