lua-resty-seaweedfs

Lua 海带文件系统客户端。

$ opm get cooperlyt/lua-resty-seaweedfs

lua-resty-seaweedfs

Lua 海带文件系统客户端,基于 seaweedfs.

  • 实现海带文件系统 API

  • 一步上传文件

  • 结果添加请求文件哈希码

  • 返回图像缩略图

状态

生产就绪。

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

用法

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

安装

opm get cooperlyt/lua-resty-seaweedfs

docker 镜像 coopersoft/seaweedfs-gateway

依赖

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

作者

Cooper

许可证

2bsd

依赖项

luajit

版本