A fastdfs client with elixir
If available in Hex, the package can be installed
by adding fastdfs_client
to your list of dependencies in mix.exs
:
def deps do
[
{:fastdfs_client, "~> 0.2.0"}
]
end
Add fastdfs server config to config.exs
config :fastdfs_client, :fdfs_server,
host: "172.16.21.100",
port: 22122
OR
config :fastdfs_client, :fdfs_server,
endpoints: [
{"172.16.21.100", 22122},
{"172.16.21.101", 22122}
]
- upload_file/1
- download_file/1
- delete_file/1