config

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCastInFightNotFound = fmt.Errorf("cast in fight not found")
)

Functions

func GetCastInFight

func GetCastInFight(ctx context.Context, id int64) (*models.CastInFight, error)

func GetConsumable

func GetConsumable(id int64) (*models.Consumable, error)

func GetEnchant

func GetEnchant(enchantID int64) (*models.Enchant, error)

func GetGem

func GetGem(id int64) (*models.Gem, error)

func GetTemporaryEnchant

func GetTemporaryEnchant(enchantID int64) (*models.TemporaryEnchant, error)

func GetWowheadItem

func GetWowheadItem(ctx context.Context, itemID int64) (*wowhead.Item, error)

func Init

func Init(folder string) error

func SetCastInFight

func SetCastInFight(v *models.CastInFight)

func SetConsumable

func SetConsumable(consumable *models.Consumable)

func SetEnchant

func SetEnchant(enchant *models.Enchant)

func SetGem

func SetGem(gem *models.Gem)

func SetTemporaryEnchant

func SetTemporaryEnchant(enchant *models.TemporaryEnchant)

func Teardown

func Teardown(folder string) error

Types

type Wowhead

type Wowhead struct {
	Items map[string]*wowhead.Item `json:"items"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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