config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HoundsMetadataEndpoint string               `yaml:"hounds_metadata_endpoint"`
	MAYCMetadataEndpoint   string               `yaml:"mayc_metadata_endpoint"`
	BotToken               string               `yaml:"discord_bot_token"`
	IPFSEndpoint           string               `yaml:"ipfs_endpoint"`
	ImageProcessorConfig   ImageProcessorConfig `yaml:"image_processor_mappings"`
}

func LoadCfg

func LoadCfg(env, cfgFile string) (Config, error)

type HandMapping added in v0.2.0

type HandMapping struct {
	Hand map[string]string
}

type HandMappings added in v0.2.0

type HandMappings struct {
	Colors map[string]string `yaml:"colors"`
}

type ImageProcessorConfig

type ImageProcessorConfig struct {
	GMMappings              map[string]string `yaml:"gm_mappings"`
	NFDMerchMappings        MerchMappings     `yaml:"nfd_merch_mappings"`
	SuitMappings            SuitMappings      `yaml:"suit_mappings"`
	Hands                   map[string]string `yaml:"-"`
	PledgeHands             PledgeMappings    `yaml:"pledge_hands"`
	ApeBagMappings          map[string]string `yaml:"ape_bag"`
	MAYCBackgroundColorKeys map[string]string `yaml:"mayc_background_color_keys"`
}

type MaskMapping added in v0.4.0

type MaskMapping struct {
	Default       string            `yaml:"default"`
	TraitMappings map[string]string `yaml:"trait_mappings"`
	ChromaKey     string            `yaml:"chroma_key"`
}

type MerchMappings added in v0.2.0

type MerchMappings struct {
	Default     string            `yaml:"default"`
	Flame       string            `yaml:"default_flame"`
	XL          string            `yaml:"xl"`
	XLFlame     string            `yaml:"xl_flame"`
	FlameTraits map[string]string `yaml:"flame_traits"`
	XLTraits    map[string]string `yaml:"xl_traits"`
	Hats        map[string]string `yaml:"hats"`
}

type PledgeMappings added in v0.2.0

type PledgeMappings struct {
	Hounds map[string]HandMappings `yaml:"mutant_hounds"`
	MAYC   map[string]HandMappings `yaml:"mayc"`
}

type SuitMappings added in v0.4.0

type SuitMappings struct {
	Masks    map[string]MaskMapping       `yaml:"masks"`
	SkipMask []string                     `yaml:"skip_mask"`
	Suits    map[string]map[string]string `yaml:"suits"`
}

Jump to

Keyboard shortcuts

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