config

package
v0.0.0-...-83d7f29 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func InitConfig(configPath string) error

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.

Jump to

Keyboard shortcuts

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