Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

onatm/clockwerk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

27 Commits

Repository files navigation

clockwerk

Coverage Status Go Report Card Go Reference

Job Scheduling Library

clockwerk allows you to schedule periodic jobs using a simple, fluent syntax.

Installing

Using clockwerk is easy. First, use go get to install the latest version of the library.

go get -u github.com/onatm/clockwerk@latest

Usage

Include clockwerk in your application:

import "github.com/onatm/clockwerk"

Example

package main
import (
 "fmt"
 "time"
 "github.com/onatm/clockwerk"
)
type DummyJob struct{}
func (d DummyJob) Run() {
 fmt.Println("Every 30 seconds")
}
func main() {
 var job DummyJob
 c := clockwerk.New()
 c.Every(30 * time.Second).Do(job)
 c.Start()
}

About

Job Scheduling Library

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /