config

package
v0.0.0-...-467dd59 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 0 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 {
	Service struct {
		MessageStoreUrl    string `env:"MESSAGE_STORE_URL,required"`
		MessageStoreApiKey string `env:"MESSAGE_STORE_API_KEY,required"`
		ServerAddress      string `env:"CHANNELS_API_SERVER_ADDRESS,required"`
		GRPCPort           int    `env:"CHANNELS_GRPC_PORT,required"`
		OasisApiUrl        string `env:"OASIS_API_URL,required"`
		CorsUrl            string `env:"CHANNELS_API_CORS_URL,required"`
	}
	Mail struct {
		ApiKey string `env:"MAIL_API_KEY,required"`
	}
	GMail struct {
		ClientId     string `env:"GMAIL_CLIENT_ID,unset"`
		ClientSecret string `env:"GMAIL_CLIENT_SECRET,unset"`
		RedirectUris string `env:"GMAIL_REDIRECT_URIS"`
		OryApiKey    string `env:"ORY_API_KEY,unset"`
		OryServerUrl string `env:"ORY_SERVER_URL"`
	}
	WebChat struct {
		ApiKey          string `env:"WEBCHAT_API_KEY,required"`
		SlackWebhookUrl string `env:"SLACK_WEBHOOK_URL"`
		PingInterval    int    `env:"WEBSOCKET_PING_INTERVAL"`
	}
	VCon struct {
		ApiKey          string `env:"VCON_API_KEY,required"`
		AwsAccessKey    string `env:"AWS_ACCESS_KEY"`
		AwsAccessSecret string `env:"AWS_ACCESS_SECRET"`
		AwsRegion       string `env:"AWS_REGION"`
		AwsBucket       string `env:"AWS_BUCKET"`
	}
}

Jump to

Keyboard shortcuts

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