lib

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFromBytes

func DecodeFromBytes(data []byte) (*models.DecodedInventory, error)

func DecodeInventory

func DecodeInventory(data string) (*models.DecodedInventory, error)

func DecodedLen added in v1.2.0

func DecodedLen(n int) int

DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base64-encoded data.

func FastDecode added in v1.2.0

func FastDecode(dst, src []byte) (int, error)

FastDecode is a zero-allocation base64 decoder that reuses the input buffer UNSAFE: Modifies the input slice in-place

func GetItem

func GetItem(itemId string) *models.HypixelItem

func GetItems

func GetItems(cache bool, cacheTime int64, retries int) (map[string]models.HypixelItem, error)

func GetPrices

func GetPrices(cache bool, cacheTimeSeconds int64, retries int) (map[string]float64, error)

func ParseItems

func ParseItems(profileData *skycrypttypes.Member, museumData *skycrypttypes.Museum) (*models.ParsedItems, error)

func TitleCase

func TitleCase(str string) string

Types

type ItemProviderAdapter

type ItemProviderAdapter struct{}

func NewItemProviderAdapter

func NewItemProviderAdapter() *ItemProviderAdapter

func (*ItemProviderAdapter) GetItem

func (adapter *ItemProviderAdapter) GetItem(itemId string) *models.HypixelItem

Jump to

Keyboard shortcuts

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