timer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	sptty.BaseService
	base.IServiceTimer
	// contains filtered or unexported fields
}

func (*Service) CreateTimer

func (s *Service) CreateTimer(timerName string, handler base.TimerHander, itv ...time.Duration) error

func (*Service) Init

func (s *Service) Init(app sptty.ISptty) error

func (*Service) Release

func (s *Service) Release()

func (*Service) RemoveTimer

func (s *Service) RemoveTimer(timerName string) error

func (*Service) ServiceName

func (s *Service) ServiceName() string

type Timer

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

func CreateTimer

func CreateTimer(handler base.TimerHander, itv ...time.Duration) *Timer

param1: handler func param2: timer duration

func (*Timer) Release

func (s *Timer) Release()

Jump to

Keyboard shortcuts

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