Documentation ¶
Index ¶
- Constants
- func AddListings(ctx context.Context, listings []types.ParsedListing) error
- func ClearListings(ctx context.Context) error
- func GetConfigDir() (string, error)
- func InitConfig() error
- func Load() error
- func Save() error
- func SetDisplay(ctx context.Context, display int) error
- func SetLanguage(ctx context.Context, language string) error
- func SetLeague(ctx context.Context, league string) error
- func SetListing(ctx context.Context, listing string, level int, count int) error
- func SetName(ctx context.Context, name string) error
- func SetPrice(ctx context.Context, listing string, price string) error
- func SetScaling(ctx context.Context, scaling float64) error
- func SetShortcut(ctx context.Context, shortcut []string) error
- func SetStream(ctx context.Context, stream bool) error
- type Config
- type Language
- type League
Constants ¶
View Source
const ( LanguageEnglish = Language("eng") LanguagePortuguese = Language("por") LanguageRussian = Language("rus") LanguageThai = Language("tha") LanguageFrench = Language("fra") LanguageGerman = Language("deu") LanguageSpanish = Language("spa") LanguageChinese = Language("chi_sim") LanguageKorean = Language("kor") LanguageJapanese = Language("jpn") )
View Source
const ( LeagueStandard = League("std") LeagueSoftcore = League("lsc") LeagueHardcore = League("lhc") )
Variables ¶
This section is empty.
Functions ¶
func AddListings ¶
func AddListings(ctx context.Context, listings []types.ParsedListing) error
func ClearListings ¶
func GetConfigDir ¶
func InitConfig ¶
func InitConfig() error
Types ¶
type Config ¶
type Config struct { Version int `json:"version"` Scaling float64 `json:"scaling"` Prices map[string]string `json:"prices"` Listings map[string]map[int]int `json:"listings"` Language Language `json:"language"` League League `json:"league"` Messages map[string]string `json:"messages"` Name string `json:"name"` Stream bool `json:"stream"` Display int `json:"display"` Shortcut []string `json:"shortcut"` }
var Cfg Config
Click to show internal directories.
Click to hide internal directories.