{"id":13777132,"url":"https://github.com/sunkan/lua-resty-mogilefs","last_synced_at":"2026-01-29T14:24:50.256Z","repository":{"id":139775732,"uuid":"81082015","full_name":"sunkan/lua-resty-mogilefs","owner":"sunkan","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-08T09:30:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-14T19:33:36.985Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/sunkan.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2017-02-06T11:49:23.000Z","updated_at":"2017-02-08T09:30:56.000Z","dependencies_parsed_at":"2024-01-13T10:40:00.910Z","dependency_job_id":"398b18cf-7c19-422c-8317-55227c0815a1","html_url":"https://github.com/sunkan/lua-resty-mogilefs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunkan%2Flua-resty-mogilefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunkan%2Flua-resty-mogilefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunkan%2Flua-resty-mogilefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunkan%2Flua-resty-mogilefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunkan","download_url":"https://codeload.github.com/sunkan/lua-resty-mogilefs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225043057,"owners_count":17411924,"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-08-03T18:00:38.153Z","updated_at":"2026-01-29T14:24:50.250Z","avatar_url":"https://github.com/sunkan.png","language":"Lua","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"Name\n====\n\nlua-resty-mogilefs - Lua mogilefs client driver for the ngx_lua based on the cosocket API\n\n\n\n##Small example\n\n\n```\nlocation / {\n    set $path \"\";\n    rewrite_by_lua '\n        local domain = \"example.com\"\n        local key = ngx.var.uri\n\n        local mogilefs = require \"resty.mogilefs\"\n        local mogile, err = mogilefs:new()\n        if not mogile then\n            ngx.say(\"error to instantiate mogile: \", err)\n            return\n        end\n\n        mogile:set_timeout(1000) -- 1 sec\n\n        local ok, err = mogile:connect(\"127.0.0.1\", 7001)\n        if not ok then\n            ngx.say(\"failed to connect: \", err)\n            return\n        end\n\n\n        local path, pathCount, err = mogile:get(domain, key)\n        if err then\n          ngx.status = ngx.HTTP_NOT_FOUND\n          return\n        end\n\n        ngx.var.path = path\n    ';\n    proxy_pass $path;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunkan%2Flua-resty-mogilefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunkan%2Flua-resty-mogilefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunkan%2Flua-resty-mogilefs/lists"}