config

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronOptions

type CronOptions struct {
	RackEnv                   pod.EnvVarValue `env:"RACK_ENV"`
	ConfigRedisProxy          pod.EnvVarValue `env:"CONFIG_REDIS_PROXY"`
	ConfigRedisSentinelHosts  pod.EnvVarValue `env:"CONFIG_REDIS_SENTINEL_HOSTS"`
	ConfigRedisSentinelRole   pod.EnvVarValue `env:"CONFIG_REDIS_SENTINEL_ROLE"`
	ConfigQueuesMasterName    pod.EnvVarValue `env:"CONFIG_QUEUES_MASTER_NAME"`
	ConfigQueuesSentinelHosts pod.EnvVarValue `env:"CONFIG_QUEUES_SENTINEL_HOSTS"`
	ConfigQueuesSentinelRole  pod.EnvVarValue `env:"CONFIG_QUEUES_SENTINEL_ROLE"`
	ConfigHoptoadService      pod.EnvVarValue `env:"CONFIG_HOPTOAD_SERVICE" secret:"backend-error-monitoring"`
	ConfigHoptoadAPIKey       pod.EnvVarValue `env:"CONFIG_HOPTOAD_API_KEY" secret:"backend-error-monitoring"`
}

CronOptions holds configuration for the cron pods

func NewCronOptions

func NewCronOptions(spec saasv1alpha1.BackendSpec) CronOptions

NewCronOptions returns a CronOptions struct for the given saasv1alpha1.BackendSpec

type ListenerOptions

type ListenerOptions struct {
	RackEnv                                pod.EnvVarValue `env:"RACK_ENV"`
	ConfigRedisProxy                       pod.EnvVarValue `env:"CONFIG_REDIS_PROXY"`
	ConfigRedisSentinelHosts               pod.EnvVarValue `env:"CONFIG_REDIS_SENTINEL_HOSTS"`
	ConfigRedisSentinelRole                pod.EnvVarValue `env:"CONFIG_REDIS_SENTINEL_ROLE"`
	ConfigQueuesMasterName                 pod.EnvVarValue `env:"CONFIG_QUEUES_MASTER_NAME"`
	ConfigQueuesSentinelHosts              pod.EnvVarValue `env:"CONFIG_QUEUES_SENTINEL_HOSTS"`
	ConfigQueuesSentinelRole               pod.EnvVarValue `env:"CONFIG_QUEUES_SENTINEL_ROLE"`
	ConfigMasterServiceID                  pod.EnvVarValue `env:"CONFIG_MASTER_SERVICE_ID"`
	ConfigRequestLoggers                   pod.EnvVarValue `env:"CONFIG_REQUEST_LOGGERS"`
	ConfigRedisAsync                       pod.EnvVarValue `env:"CONFIG_REDIS_ASYNC"`
	ListenerWorkers                        pod.EnvVarValue `env:"LISTENER_WORKERS"`
	ConfigLegacyReferrerFilters            pod.EnvVarValue `env:"CONFIG_LEGACY_REFERRER_FILTERS"`
	ConfigListenerPrometheusMetricsEnabled pod.EnvVarValue `env:"CONFIG_LISTENER_PROMETHEUS_METRICS_ENABLED"`
	ConfigInternalAPIUser                  pod.EnvVarValue `env:"CONFIG_INTERNAL_API_USER" secret:"backend-internal-api"`
	ConfigInternalAPIPassword              pod.EnvVarValue `env:"CONFIG_INTERNAL_API_PASSWORD" secret:"backend-internal-api"`
	ConfigHoptoadService                   pod.EnvVarValue `env:"CONFIG_HOPTOAD_SERVICE" secret:"backend-error-monitoring"`
	ConfigHoptoadAPIKey                    pod.EnvVarValue `env:"CONFIG_HOPTOAD_API_KEY" secret:"backend-error-monitoring"`
}

ListenerOptions holds configuration for the listener pods

func NewListenerOptions

func NewListenerOptions(spec saasv1alpha1.BackendSpec) ListenerOptions

NewListenerOptions returns an Options struct for the given saasv1alpha1.BackendSpec

type WorkerOptions

type WorkerOptions struct {
	RackEnv                              pod.EnvVarValue `env:"RACK_ENV"`
	ConfigRedisProxy                     pod.EnvVarValue `env:"CONFIG_REDIS_PROXY"`
	ConfigRedisSentinelHosts             pod.EnvVarValue `env:"CONFIG_REDIS_SENTINEL_HOSTS"`
	ConfigRedisSentinelRole              pod.EnvVarValue `env:"CONFIG_REDIS_SENTINEL_ROLE"`
	ConfigQueuesMasterName               pod.EnvVarValue `env:"CONFIG_QUEUES_MASTER_NAME"`
	ConfigQueuesSentinelHosts            pod.EnvVarValue `env:"CONFIG_QUEUES_SENTINEL_HOSTS"`
	ConfigQueuesSentinelRole             pod.EnvVarValue `env:"CONFIG_QUEUES_SENTINEL_ROLE"`
	ConfigMasterServiceID                pod.EnvVarValue `env:"CONFIG_MASTER_SERVICE_ID"`
	ConfigRedisAsync                     pod.EnvVarValue `env:"CONFIG_REDIS_ASYNC"`
	ConfigWorkersLoggerFormatter         pod.EnvVarValue `env:"CONFIG_WORKERS_LOGGER_FORMATTER"`
	ConfigWorkerPrometheusMetricsEnabled pod.EnvVarValue `env:"CONFIG_WORKER_PROMETHEUS_METRICS_ENABLED"`
	ConfigWorkerPrometheusMetricsPort    pod.EnvVarValue `env:"CONFIG_WORKER_PROMETHEUS_METRICS_PORT"`
	ConfigEventsHook                     pod.EnvVarValue `env:"CONFIG_EVENTS_HOOK" secret:"backend-system-events-hook"`
	ConfigEventsHookSharedSecret         pod.EnvVarValue `env:"CONFIG_EVENTS_HOOK_SHARED_SECRET" secret:"backend-system-events-hook"`
	ConfigHoptoadService                 pod.EnvVarValue `env:"CONFIG_HOPTOAD_SERVICE" secret:"backend-error-monitoring"`
	ConfigHoptoadAPIKey                  pod.EnvVarValue `env:"CONFIG_HOPTOAD_API_KEY" secret:"backend-error-monitoring"`
}

WorkerOptions holds configuration for the worker pods

func NewWorkerOptions

func NewWorkerOptions(spec saasv1alpha1.BackendSpec) WorkerOptions

NewWorkerOptions returns an Options struct for the given saasv1alpha1.BackedSpec

Jump to

Keyboard shortcuts

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