Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ApiPort string `env:"PORT" envDefault:"10000" validate:"required"` MetricsPort string `env:"PORT_METRICS" envDefault:"10000" validate:"required"` Logger logger.Config GraphQL struct { PlaygroundEnabled bool `env:"GRAPHQL_PLAYGROUND_ENABLED" envDefault:"false"` FixedComplexityLimit int `env:"GRAPHQL_FIXED_COMPLEXITY_LIMIT" envDefault:"200"` } Admin struct { Key string `env:"ADMIN_KEY,required"` } GrpcClientConfig config.GrpcClientConfig PostgresConfig config.PostgresConfig PostgresAsyncConfig config.PostgresAsyncConfig Neo4j config.Neo4jConfig RabbitMQConfig config.RabbitMQConfig Jaeger tracing.JaegerConfig Metrics metrics.Config AppConfig struct { AllowOrigins []string `env:"ALLOW_ORIGINS" envDefault:"*"` AllowHeaders []string `env:"ALLOW_HEADERS" envDefault:"x-openline-username"` TrackingPublicUrl string `env:"TRACKING_PUBLIC_URL" envDefault:"https://custosmetrics.com"` InvoicePaidRedirectUrl string `env:"INVOICE_PAID_REDIRECT_URL" envDefault:"https://customeros.ai/payments/status/paid/"` Mailstack struct { SupportedTlds []string `env:"MAILSTACK_SUPPORTED_TLDS" envDefault:"com"` } DefaultGlobalOrgPrimaryDomainsInSearch []string `` /* 508-byte string literal not displayed */ } InternalServices struct { CustomerOsApiUrl string `env:"CUSTOMER_OS_API_URL" envDefault:"https://api.customeros.ai" validate:"required"` ValidationApi string `env:"VALIDATION_API" validate:"required"` ValidationApiKey string `env:"VALIDATION_API_KEY" validate:"required"` EnrichmentApiUrl string `env:"ENRICHMENT_API_URL" validate:"required"` EnrichmentApiKey string `env:"ENRICHMENT_API_KEY" validate:"required"` FileStoreApiConfig fsc.FileStoreApiConfig } ExternalServices struct { IntegrationApp struct { WorkspaceKey string `env:"INTEGRATION_APP_WORKSPACE_KEY"` WorkspaceSecret string `env:"INTEGRATION_APP_WORKSPACE_SECRET"` ApiTriggerUrlCreatePaymentLinks string `env:"INTEGRATION_APP_API_TRIGGER_URL_CREATE_PAYMENT_LINKS"` } CloudflareConfig config.CloudflareConfig OpenSRSConfig config.OpenSRSConfig NamecheapConfig config.NamecheapConfig StripeConfig config.StripeConfig PostmarkConfig config.PostmarkConfig } }
func InitConfig ¶
Click to show internal directories.
Click to hide internal directories.