Packages

An elixir client library for the IPFS API

Current section

Files

Jump to
elixir_ipfs_api lib ipfs-connection.ex
Raw

lib/ipfs-connection.ex

defmodule IpfsConnection do
@moduledoc """
The IpfsConnection is used to create the struct that contains connection
information of IPFS rest endpoint. By default it connects to `http://localhost:5001/api/v0`
"""
@type t :: %IpfsConnection{host: String.t, base: String.t, port: pos_integer}
defstruct host: "localhost", base: "api/v0", port: 5001
end