Documentation
¶
Overview ¶
Package wmapi provides a high-level interface for interacting with Whatsminer ASICs. This file contains the middleware layer that simplifies interaction with the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WhatsminerMiddleware ¶
type WhatsminerMiddleware struct {
API *transport.WhatsminerAPI
AccessToken *transport.WhatsminerAccessToken
Read *client.ReadAPI
Write *client.WriteAPI
}
func NewWhatsminerAPI ¶
func NewWhatsminerAPI(ipAddress string, port int, adminPassword string) (*WhatsminerMiddleware, error)
Click to show internal directories.
Click to hide internal directories.