{"id":13413234,"url":"https://github.com/rk/go-cron","last_synced_at":"2025-03-14T19:31:38.490Z","repository":{"id":57494953,"uuid":"1619360","full_name":"rk/go-cron","owner":"rk","description":"A simple Cron library for go that can execute closures or functions at varying intervals, from once a second to once a year on a specific date and time. Primarily for web applications and long running daemons.","archived":false,"fork":false,"pushed_at":"2020-02-10T17:52:36.000Z","size":4,"stargazers_count":230,"open_issues_count":0,"forks_count":15,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-25T05:25:32.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-15T14:50:49.000Z","updated_at":"2024-09-24T01:47:46.000Z","dependencies_parsed_at":"2022-08-28T19:40:55.201Z","dependency_job_id":null,"html_url":"https://github.com/rk/go-cron","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/rk%2Fgo-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rk%2Fgo-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rk%2Fgo-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rk%2Fgo-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rk","download_url":"https://codeload.github.com/rk/go-cron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635274,"owners_count":20322908,"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":[],"created_at":"2024-07-30T20:01:35.762Z","updated_at":"2025-03-14T19:31:38.170Z","avatar_url":"https://github.com/rk.png","language":"Go","funding_links":[],"categories":["Job Scheduler","Utilities","工具库","Go","作业调度","Relational Databases","实用工具","作业调度器"],"sub_categories":["Search and Analytic Databases","Advanced Console UIs","交流","SQL 查询语句构建库","检索及分析资料库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","HTTP Clients"],"readme":"Cron.go\n=======\n\nThis is a simple library to handle scheduled tasks. Tasks can be run in a\nminimum delay of once a second--for which Cron isn't actually designed.\nComparisons are fast and efficient and take place in a goroutine; matched\njobs are also executed in goroutines.\n\nFor instance, you can use the following in your web application that uses\nMySQL:\n\n    func init() {\n      cron.NewWeeklyJob(1, 23, 59, 59, func (time.Time) {\n        _, err := conn.Query(\"OPTIMIZE TABLE mytable;\")\n        if(err != nil) { println(err) }\n      })\n    }\n\nLicense\n-------\n\nCopyright 2011 Robert Kosek \u003cthewickedflea@gmail.com\u003e. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are\npermitted provided that the following conditions are met:\n\n   1. Redistributions of source code must retain the above copyright notice, this list of\n      conditions and the following disclaimer.\n\n   2. Redistributions in binary form must reproduce the above copyright notice, this list\n      of conditions and the following disclaimer in the documentation and/or other materials\n      provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY ROBERT KOSEK ``AS IS'' AND ANY EXPRESS OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ROBERT KOSEK OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nThe views and conclusions contained in the software and documentation are those of the\nauthors and should not be interpreted as representing official policies, either expressed\nor implied, of Robert Kosek.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frk%2Fgo-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frk%2Fgo-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frk%2Fgo-cron/lists"}