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)
Click to show internal directories.
Click to hide internal directories.