lua-resty-seaweedfs

Lua seaweedfs client.

$ opm get cooperlyt/lua-resty-seaweedfs

lua-resty-seaweedfs

Lua seaweedfs client with seaweedfs.

  • Implement seaweedfs API

  • One step updoad file

  • Result Add request file hash code

  • Return image thumb

Status

Production ready.

[!CI](https://github.com/cooperlyt/lua-resty-seaweedfs/actions)

USESAGE

API:

    local seaweedfs = require "resty.seaweedfs"
  • new

  • put

  • get

  • delete

  • assign

  • lookup

  • upload

Openresty:

  • http://${url}/file/upload

  • http://${url}/file/img/7,26c02a5ef3

  • http://${url}/file/img/thumb/7,26c02a5ef3

  • http://${url}/file/get/7,26c02a5ef3

  • http://${url}/file/download/7,26c02a5ef3

Install

opm get cooperlyt/lua-resty-seaweedfs

docker image coopersoft/seaweedfs-gateway

Dependency

lua-resty-http opm get ledgetech/lua-resty-http

Authors

Cooper

License

2bsd

Dependencies

luajit

Versions