Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onatm/clockwerk
Job Scheduling Library
https://github.com/onatm/clockwerk
cron go golang job-scheduler
Last synced: about 2 months ago
JSON representation
Job Scheduling Library
- Host: GitHub
- URL: https://github.com/onatm/clockwerk
- Owner: onatm
- License: mit
- Created: 2017-04-09T23:10:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-08T07:51:19.000Z (about 5 years ago)
- Last Synced: 2024-05-30T00:17:37.495Z (7 months ago)
- Topics: cron, go, golang, job-scheduler
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 144
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - clockwerk - Go package to schedule periodic jobs using a simple, fluent syntax. (Job Scheduler / Search and Analytic Databases)
- awesome-repositories - onatm/clockwerk - Job Scheduling Library (Go)
- awesome-go-extra - clockwerk - 04-09T23:10:48Z|2019-11-08T07:51:19Z| (Job Scheduler / Advanced Console UIs)
README
# clockwerk
[![Build Status](https://travis-ci.org/onatm/clockwerk.svg?branch=master)](https://travis-ci.org/onatm/clockwerk) [![Coverage Status](https://coveralls.io/repos/github/onatm/clockwerk/badge.svg?branch=master)](https://coveralls.io/github/onatm/clockwerk?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/onatm/clockwerk)](https://goreportcard.com/report/github.com/onatm/clockwerk) [![GoDoc](http://godoc.org/github.com/onatm/clockwerk?status.png)](http://godoc.org/github.com/onatm/clockwerk)
Job Scheduling Library
clockwerk allows you to schedule periodic jobs using a simple, fluent syntax.
## Usage
``` sh
go get github.com/onatm/clockwerk
`````` go
package mainimport (
"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()
}
```