This Go package provides a wrapper for the Awesome Miner API.
Note: This is currently a work in progress and does not yet contain implementations for all available endpoints. Contributions are welcome ;-)
To install this SDK to your GOPATH
:
go get -u github.com/johanmeiring/awesomeminer-go-sdk
... or you can use a dependency tool such as Govendor or dep.
// If your Awesome Miner instance is behind a proxy with HTTP Basic Auth:
c := awesomeminer.NewClient("http://proxy", "username", "password")
// otherwise:
c := awesomeminer.NewClient("http://miner:17790", "", "")
// Fetch all notifications:
n, err := c.GetNotifications()
// Fetch all miners:
m, err := c.GetMiners()
// Fetch a specific miner:
miner, err := c.GetMiner(5)
This SDK is distributed under the MIT License. See the LICENSE file for more details.
Donations are very welcome, and can be made to the following addresses:
- BTC: 1AWHJcUBha35FnuuWat9urRW2FNc4ftztv
- ETH: 0xAF1Aac4c40446F4C46e55614F14d9b32d712ECBc