internal

package
v0.0.0-...-54f9dea Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PokemonTCGAPIURL_DEFAULT       = "https://api.pokemontcg.io"
	PokemonTCGImagesURL_DEFAULT    = "https://images.pokemontcg.io"
	PostgresURL_DEFAUT             = "postgresql://ash:pikachu@0.0.0.0:5432/pokedex"
	RemoteDataURL_DEFAULT          = "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/refs/heads/master"
	DataPath_DEFAULT               = "data"
	DataConfigFile_DEFAULT         = "data_config.json"
	ImageDownloaderWorkers_DEFAULT = "5"
	SidecarPort_DEFAULT            = "8000"
	ServerPort_DEFAULT             = "8001"
)

Variables

This section is empty.

Functions

func GetEmbedding

func GetEmbedding(filenames []string, cfg *Config) ([][]float32, error)

func SetupLogger

func SetupLogger()

Types

type Config

type Config struct {
	PokemonTCGAPIKey       string
	PokemonTCGAPIURL       string
	PokemonTCGImagesURL    string
	PostgresURL            string
	RemoteDataURL          string
	DataPath               string
	DataConfigFile         string
	ImageDownloaderWorkers int
	SidecarPort            int
	ServerPort             int
}

func LoadConfigs

func LoadConfigs() (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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