Manic v0.0.2 Manic.Miner View Source

Module for encapsulating a miner Merchant API client.

Link to this section Summary

Types

t()

Bitcoin miner API client

Functions

Returns a HTTP client for the given URL.

Returns a map of Manic's known miners.

Returns a miner client for the given URL.

Link to this section Types

Link to this type

t()

View Source
t() :: %Manic.Miner{
  client: Tesla.Client.t(),
  options: keyword(),
  url: String.t() | atom()
}

Bitcoin miner API client

Link to this section Functions

Link to this function

client(url, options)

View Source
client(String.t() | atom(), keyword()) :: Tesla.Client.t()

Returns a HTTP client for the given URL.

Link to this function

known_miners()

View Source
known_miners() :: map()

Returns a map of Manic's known miners.

Returns a miner client for the given URL.

Link to this function

new(url, options \\ [])

View Source
new(String.t() | atom(), keyword()) :: t()