{"id":24764285,"url":"https://github.com/liut/kedge-go","last_synced_at":"2025-03-23T15:51:26.841Z","repository":{"id":138763936,"uuid":"401632539","full_name":"liut/kedge-go","owner":"liut","description":"Client library of kedge with Golang","archived":false,"fork":false,"pushed_at":"2021-09-22T15:15:06.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T21:47:40.042Z","etag":null,"topics":["bt","golang"],"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/liut.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-31T08:42:47.000Z","updated_at":"2021-09-22T15:15:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2d4d82e-df0e-4470-9fb4-2057863460aa","html_url":"https://github.com/liut/kedge-go","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/liut%2Fkedge-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liut%2Fkedge-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liut%2Fkedge-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liut%2Fkedge-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liut","download_url":"https://codeload.github.com/liut/kedge-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245127940,"owners_count":20565203,"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":["bt","golang"],"created_at":"2025-01-28T21:47:18.714Z","updated_at":"2025-03-23T15:51:26.802Z","avatar_url":"https://github.com/liut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kedgecli\n\nClient library of [kedge](https://github.com/liut/kedge) with Golang\n\n## interfaces\n\n```go\n\ntype ClientI interface {\n\tAdd(rd io.Reader, hat string) error\n\tDrop(hash string) error\n\tDropWithData(hash string) error\n\tExist(hash string) bool\n\tGetHashes() Hashes\n\tGetTorrents() ([]TorrentStatus, error)\n\tGetTorrent(hash string) (*TorrentStatus, error)\n\tSession() (*TeSession, error)\n\tStats() (*TeStatistics, error)\n}\n\n```\n\n## usage\n\n```go\n\n\troot := \"/var/lib/store/root\"\n\turi := \"http://localhost:16180\"\n\tc := kedgecli.New(root, uri)\n\n\t// read metainfo as mi *MetaInfo\n\tvar buf bytes.Buffer\n\tif err := mi.Write(\u0026buf); err != nil {\n\t\treturn\n\t}\n\terr := c.Add(buf, \"subdir\")\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliut%2Fkedge-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliut%2Fkedge-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliut%2Fkedge-go/lists"}