Skip to content

Repository files navigation

clockwerk

Coverage StatusGo Report CardGo 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"
)
typeDummyJobstruct{}
func (dDummyJob) Run() {
fmt.Println("Every 30 seconds")
}
funcmain() {
varjobDummyJobc:=clockwerk.New()
c.Every(30*time.Second).Do(job)
c.Start()
}

About

Job Scheduling Library

Topics

Resources

Stars

183 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages