FastdfsClient
A fastdfs client with elixir
Installation
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"}
]
endConfiguration
Add fastdfs server config to config.exs
config :fastdfs_client, :fdfs_server,
host: "172.16.21.100",
port: 22122OR
config :fastdfs_client, :fdfs_server,
endpoints: [
{"172.16.21.100", 22122},
{"172.16.21.101", 22122}
]Function
- upload_file/1
- download_file/1
- delete_file/1