Skip to content
Job Scheduling Library
Go
Branch: master
Clone or download
onatm Merge pull request #8 from onatm/coverall
Add coveralls specific config for travis-ci
Latest commit e5ab132 Apr 16, 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"
  "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.