Skip to content

johanmeiring/awesomeminer-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Miner Go SDK

GoDoc Go Report Card Software License Build Status

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 ;-)

Installing

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.

Basic usage

// 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)

License

This SDK is distributed under the MIT License. See the LICENSE file for more details.

Donations

Donations are very welcome, and can be made to the following addresses:

  • BTC: 1AWHJcUBha35FnuuWat9urRW2FNc4ftztv
  • ETH: 0xAF1Aac4c40446F4C46e55614F14d9b32d712ECBc

Releases

No releases published

Packages

No packages published

Languages