Home
Softono

Clockwerk

Open source MIT Go
182
Stars
16
Forks
0
Issues
2
Watchers
1 year
Last Commit

 About Clockwerk

Job Scheduling Library

Platforms

Web Self-hosted

Languages

Go

Links

Need Help Installing Clockwerk?

We provide expert installation service for this software. Our team will install, configure, and secure Clockwerk on your server. plans start at just $30.

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()
}