env

package
v0.0.0-...-8aa1adc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 2 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 {
	MySQLDsnRW                        string `env:"MYSQL_DSN_RW"`
	MySQLDsnRO                        string `env:"MYSQL_DSN_RO"`
	IsTestMode                        bool   `env:"IS_TEST"`
	SDKUrl                            string `env:"SDK_URL"`
	SlackHookURL                      string `env:"SLACKHOOKURL"`
	SlackChannel                      string `env:"SLACKCHANNEL"`
	APIURL                            string `env:"APIURL" envDefault:"https://api.odysee.com"`
	APIToken                          string `env:"APITOKEN"`
	SocketyToken                      string `env:"SOCKETY_TOKEN"`
	TestChannel                       string `env:"TEST_CHANNEL"`
	TestURL                           string `env:"TEST_URL" envDefault:"http://localhost:5900/api/v2"`
	StripeConnectAPIKey               string `env:"STRIPE_CONNECT_API_KEY"`
	StripeConnectAPIKeyTest           string `env:"STRIPE_CONNECT_API_KEY_TEST"`
	CommentClassifierAPIURL           string `env:"COMMENT_CLASSIFIER_API_URL" envDefault:"https://localhost/_/comments"`
	CommentClassificationEndpointAuth string `env:"COMMENT_CLASSIFICATION_ENDPOINT_AUTH" envDefault:""`
}

Config holds the environment configuration used by lighthouse.

func NewWithEnvVars

func NewWithEnvVars() (*Config, error)

NewWithEnvVars creates an Config from environment variables

Jump to

Keyboard shortcuts

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