cron

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerCron

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

func NewServerCron

func NewServerCron() *ServerCron

func (*ServerCron) AddCommonTask

func (s *ServerCron) AddCommonTask(name string, schedule string, f func()) (err error)

func (*ServerCron) AddTask

func (s *ServerCron) AddTask(name string, intervalSecond int64, f func())

func (*ServerCron) Init

func (s *ServerCron) Init()

func (*ServerCron) RemoveTask

func (s *ServerCron) RemoveTask(name string)

Jump to

Keyboard shortcuts

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