{"id":16331637,"url":"https://github.com/soxft/go-license","last_synced_at":"2025-05-15T16:15:16.945Z","repository":{"id":215313231,"uuid":"738101804","full_name":"soxft/go-license","owner":"soxft","description":"A simple go-license c/s","archived":false,"fork":false,"pushed_at":"2024-01-04T16:21:33.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T12:26:49.240Z","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/soxft.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-02T12:29:57.000Z","updated_at":"2024-07-02T06:38:23.000Z","dependencies_parsed_at":"2024-12-26T10:42:15.087Z","dependency_job_id":"f5423c9c-d7ac-4939-bc35-f30f6930c101","html_url":"https://github.com/soxft/go-license","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"c247ba01c3112efdb12f956dc7bb080e54765b74"},"previous_names":["soxft/go-license"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2Fgo-license","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2Fgo-license/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2Fgo-license/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2Fgo-license/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soxft","download_url":"https://codeload.github.com/soxft/go-license/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374542,"owners_count":22060613,"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-10-10T23:27:53.687Z","updated_at":"2025-05-15T16:15:16.900Z","avatar_url":"https://github.com/soxft.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-license\n\n基于 Golang 开发的一套 在线 License 系统\n\n# client\n```\ngo get -u github.com/soxft/go-license/client\n```\n\n\n```golang\nimport license \"github.com/soxft/go-license/client\"\n\nvar Pkey = `-----BEGIN RSA PUBLIC KEY-----\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n-----END RSA PUBLIC KEY-----`\n\nfunc main() {\n  license.Run(3, time.Second*30, \"http://server:8080\", Pkey)\n\n  // main process\n  go core()\n\n  // 使用 license.Exit 阻塞运行\n  \u003c-license.Exit\n}\n```\n\n\n# server\n```golang\nfunc main() {\n  server.Run()\n}\n```\n\n```shell\n// 设置指定 serial 的到期时间\nlicense_server -m set -s serialNumber -d 2024-11-23\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoxft%2Fgo-license","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoxft%2Fgo-license","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoxft%2Fgo-license/lists"}