Documentation
¶
Index ¶
- Variables
- func DisplayBuildInfo()
- func GetHostname() string
- func GetOpenAIDallEModel() string
- func GetOpenAIEndpoint() string
- func GetOpenAIGPTModel() string
- func GetOpenAIKey() string
- func GetOpenAIProvider() string
- func GetResendAPIKey() string
- func GetSenderDomain() string
- func InitConfig(configPath string) error
- func SetDefaults()
Constants ¶
This section is empty.
Variables ¶
var ( AppName string CIBuildNum string BuildDate string BuildHost string GoVersion string GitBranch string GitCommit string GitSummary string )
revive:disable:exported
Functions ¶
func DisplayBuildInfo ¶
func DisplayBuildInfo()
DisplayBuildInfo prints the build information to the console.
func GetHostname ¶
func GetHostname() string
GetHostname returns the host name from the configuration.
func GetOpenAIDallEModel ¶
func GetOpenAIDallEModel() string
GetOpenAIDallEModel returns the OpenAI services DALL-E model name from the configuration.
func GetOpenAIEndpoint ¶
func GetOpenAIEndpoint() string
GetOpenAIEndpoint returns the OpenAI services endpoint URL from the configuration.
func GetOpenAIGPTModel ¶
func GetOpenAIGPTModel() string
GetOpenAIGPTModel returns the OpenAI services GPT model name from the configuration.
func GetOpenAIKey ¶
func GetOpenAIKey() string
GetOpenAIKey returns the OpenAI services API key from the configuration.
func GetOpenAIProvider ¶
func GetOpenAIProvider() string
GetOpenAIProvider returns the OpenAI services provider from the configuration.
func GetResendAPIKey ¶
func GetResendAPIKey() string
GetResendAPIKey returns the resend API key from the configuration.
func GetSenderDomain ¶
func GetSenderDomain() string
GetSenderDomain returns the email sender domain from the configuration.
func InitConfig ¶
InitConfig initializes the configuration with the given path.
func SetDefaults ¶
func SetDefaults()
SetDefaults sets the default values in Viper for the configuration.
Types ¶
This section is empty.