rpc

package
v0.0.0-...-a529750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGMinerRPCClient

type CGMinerRPCClient struct {
}

func (*CGMinerRPCClient) GetStats

func (c *CGMinerRPCClient) GetStats(addr string) ([]byte, error)

type IRPCCLient

type IRPCCLient interface {
	GetStats(addr string) ([]byte, error)
}

func GetRPCClient

func GetRPCClient(model constants.MinerSeries) (IRPCCLient, error)

type Request

type Request struct {
	Command   string `json:"command"`
	Parameter string `json:"parameter,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL