timer

package
v0.0.0-...-6a64a6b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

README

自定义定时任务

用法:

  • 定时任务功能实现接口github.com/ilaziness/gokit/time/Jober

  • 入口导入_ "gintpl/internal/timer"

定时任务时间写法参考:https://pkg.go.dev/github.com/robfig/cron/v3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestTimer

type TestTimer struct {
}

func (*TestTimer) GetCron

func (t *TestTimer) GetCron() string

func (*TestTimer) GetName

func (t *TestTimer) GetName() string

func (*TestTimer) Run

func (t *TestTimer) Run()

Jump to

Keyboard shortcuts

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