Documentation ¶
Index ¶
- Constants
- func FromEnv(envKey string) (string, error)
- func GeminiUseSandbox() bool
- func Int(envKey string, fallback int) (int, bool)
- func Int64(envKey string, fallback int64) (int64, bool)
- func String(envKey string, fallback string) (string, bool)
- func TwilioFromNumber() (string, error)
- type KeyNotSetError
Constants ¶
View Source
const ( GeminiKey string = "GEMINI_API_KEY" GeminiSecret string = "GEMINI_API_SECRET" GeminiSandbox string = "GEMINI_SANDBOX" )
View Source
const ( TwilioSid string = "TWILIO_ACCOUNT_SID" TwilioKey string = "TWILIO_API_KEY" TwilioSecret string = "TWILIO_API_SECRET" TwilioToken string = "TWILIO_API_TOKEN" TwilioSender string = "TWILIO_SENDER" )
View Source
const ( RedisHost string = "REDIS_HOST" RedisPort string = "REDIS_PORT" RedisPassword string = "REDIS_PASSWORD" )
View Source
const (
DiscordToken string = "DISCORD_TOKEN"
)
View Source
const (
FlightAwareKey string = "FLIGHTAWARE_API_KEY"
)
View Source
const (
SlackToken string = "SLACK_TOKEN"
)
Variables ¶
This section is empty.
Functions ¶
func GeminiUseSandbox ¶
func GeminiUseSandbox() bool
func TwilioFromNumber ¶
Types ¶
type KeyNotSetError ¶
type KeyNotSetError struct {
// contains filtered or unexported fields
}
func NewKeyNotSetError ¶
func NewKeyNotSetError(envKey string) *KeyNotSetError
func (*KeyNotSetError) Error ¶
func (e *KeyNotSetError) Error() string
Click to show internal directories.
Click to hide internal directories.