env

package
v0.0.0-...-cbc9d59 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 FromEnv

func FromEnv(envKey string) (string, error)

func GeminiUseSandbox

func GeminiUseSandbox() bool

func Int

func Int(envKey string, fallback int) (int, bool)

func Int64

func Int64(envKey string, fallback int64) (int64, bool)

func String

func String(envKey string, fallback string) (string, bool)

func TwilioFromNumber

func TwilioFromNumber() (string, error)

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

Jump to

Keyboard shortcuts

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