config

package
v0.0.0-...-bd03a7f Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 5 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 {
	LlmUrl             string        `mapstructure:"LLM_URL"`
	ResponseEmoji      string        `mapstructure:"RESPONSE_EMOJI"`
	LogLevel           int           `mapstructure:"LOG_LEVEL"`
	DiscordLogLevel    int           `mapstructure:"DISCORD_LOG_LEVEL"`
	BotToken           string        `mapstructure:"DISCORD_BOT_TOKEN"`
	KeepAlive          time.Duration `mapstructure:"OLLAMA_KEEP_ALIVE"`
	DezgoToken         string        `mapstructure:"DEZGO_TOKEN"`
	EnhanceImagePrompt bool          `mapstructure:"ENHANCE_IMAGE_PROMPT"`

	DBHost     string `mapstructure:"POSTGRES_HOST"`
	DBPort     string `mapstructure:"POSTGRES_PORT"`
	DBName     string `mapstructure:"POSTGRES_DB"`
	DBUser     string `mapstructure:"POSTGRES_USER"`
	DBPassword string `mapstructure:"POSTGRES_PASSWORD"`

	DisableLLM bool `mapstructure:"DISABLE_LLM"`
}

func NewConfig

func NewConfig() Config

Jump to

Keyboard shortcuts

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