{"id":13413231,"url":"https://github.com/onatm/clockwerk","last_synced_at":"2026-01-09T23:06:52.375Z","repository":{"id":56387581,"uuid":"87746366","full_name":"onatm/clockwerk","owner":"onatm","description":"Job Scheduling Library","archived":false,"fork":false,"pushed_at":"2019-11-08T07:51:19.000Z","size":10,"stargazers_count":144,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-30T00:17:37.495Z","etag":null,"topics":["cron","go","golang","job-scheduler"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onatm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-09T23:10:48.000Z","updated_at":"2024-04-23T08:42:10.000Z","dependencies_parsed_at":"2022-08-15T17:50:23.908Z","dependency_job_id":null,"html_url":"https://github.com/onatm/clockwerk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onatm%2Fclockwerk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onatm%2Fclockwerk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onatm%2Fclockwerk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onatm%2Fclockwerk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onatm","download_url":"https://codeload.github.com/onatm/clockwerk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806032,"owners_count":20350773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","go","golang","job-scheduler"],"created_at":"2024-07-30T20:01:35.701Z","updated_at":"2026-01-09T23:06:52.329Z","avatar_url":"https://github.com/onatm.png","language":"Go","funding_links":[],"categories":["Job Scheduler","Relational Databases","作业调度器","Go"],"sub_categories":["Search and Analytic Databases","检索及分析资料库","Advanced Console UIs"],"readme":"# clockwerk\n\n[![Build Status](https://travis-ci.org/onatm/clockwerk.svg?branch=master)](https://travis-ci.org/onatm/clockwerk) \u0026nbsp; [![Coverage Status](https://coveralls.io/repos/github/onatm/clockwerk/badge.svg?branch=master)](https://coveralls.io/github/onatm/clockwerk?branch=master) \u0026nbsp; [![Go Report Card](https://goreportcard.com/badge/github.com/onatm/clockwerk)](https://goreportcard.com/report/github.com/onatm/clockwerk) \u0026nbsp; [![GoDoc](http://godoc.org/github.com/onatm/clockwerk?status.png)](http://godoc.org/github.com/onatm/clockwerk) \n\nJob Scheduling Library\n\nclockwerk allows you to schedule periodic jobs using a simple, fluent syntax.\n\n## Usage\n\n``` sh\ngo get github.com/onatm/clockwerk\n```\n\n``` go\npackage main\n\nimport (\n  \"fmt\"\n  \"time\"\n  \"github.com/onatm/clockwerk\"\n)\n\ntype DummyJob struct{}\n\nfunc (d DummyJob) Run() {\n  fmt.Println(\"Every 30 seconds\")\n}\n\nfunc main() {\n  var job DummyJob\n  c := clockwerk.New()\n  c.Every(30 * time.Second).Do(job)\n  c.Start()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonatm%2Fclockwerk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonatm%2Fclockwerk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonatm%2Fclockwerk/lists"}