pricing

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() map[types.HarvestType]CraftPricing

func UpdatePricing

func UpdatePricing(ctx context.Context) error

Types

type CraftPricing

type CraftPricing struct {
	Exalt         float64 `json:"exalt"`
	Chaos         int     `json:"chaos"`
	LowConfidence bool    `json:"lowConfidence"`
}

func GetPrice

func GetPrice(craft types.HarvestType) *CraftPricing

type RawData

type RawData struct {
	Timestamp int64 `json:"timestamp"`
	Data      []struct {
		Name          string  `json:"name"`
		Exalt         float64 `json:"exalt"`
		Chaos         int     `json:"chaos"`
		LowConfidence bool    `json:"lowConfidence"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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