transformer

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGMinerTransformer

type CGMinerTransformer struct{}

func (*CGMinerTransformer) ConvertStatsPayloadToMinerStats

func (*CGMinerTransformer) ConvertStatsPayloadToMinerStats(friendlyMinerName, crawlerId string, data []byte) (*models.MinerStats, error)

type ITransformer

type ITransformer interface {
	ConvertStatsPayloadToMinerStats(friendlyMinerName string, crawlerName string, data []byte) (*models.MinerStats, error)
}

func GetTransformer

func GetTransformer(model constants.MinerSeries) (ITransformer, error)

Jump to

Keyboard shortcuts

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