Skip to content
Job Scheduling Library
Go
Branch: master
Clone or download
Latest commit 354c9bd Sep 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore first commit Apr 9, 2017
.travis.yml fix goversall argument Sep 9, 2019
LICENSE
README.md Fixed Example Sep 9, 2019
clockwerk.go change scheduling syntax from EverySeconds to Every to enable consume… Apr 13, 2017
clockwerk_test.go change scheduling syntax from EverySeconds to Every to enable consume… Apr 13, 2017
doc.go change scheduling syntax from EverySeconds to Every to enable consume… Apr 13, 2017

README.md

clockwerk

Build Status   Coverage Status   Go Report Card   GoDoc

Job Scheduling Library

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

Usage

go get github.com/onatm/clockwerk
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()
}
You can’t perform that action at this time.