config

package
v0.0.0-...-9ffb102 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyConfig

type ConcurrencyConfig struct {
	UserSyncConcurrency             int `env:"USER_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	ContactSyncConcurrency          int `env:"CONTACT_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	OrganizationSyncConcurrency     int `env:"ORGANIZATION_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	IssueSyncConcurrency            int `env:"ISSUE_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	CommentSyncConcurrency          int `env:"COMMENT_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	LogEntrySyncConcurrency         int `env:"LOG_ENTRY_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	InteractionEventSyncConcurrency int `env:"INTERACTION_EVENT_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	InvoiceSyncConcurrency          int `env:"INVOICE_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
	OrderSyncConcurrency            int `env:"ORDER_SYNC_CONCURRENCY" envDefault:"1" validate:"required,min=1,max=100"`
}

type Config

type Config struct {
	ApiPort             string `env:"PORT" envDefault:"10004" validate:"required"`
	MetricsPort         string `env:"PORT_METRICS" envDefault:"10004" validate:"required"`
	GrpcClientConfig    config.GrpcClientConfig
	ConcurrencyConfig   ConcurrencyConfig
	Logger              logger.Config
	PostgresConfig      config.PostgresConfig
	PostgresAsyncConfig config.PostgresAsyncConfig
	Neo4j               config.Neo4jConfig
	RabbitMQConfig      config.RabbitMQConfig
	Jaeger              tracing.JaegerConfig
	Metrics             metrics.Config

	BetterContactCallbackApiKey string `env:"BETTER_CONTACT_CALLBACK_API_KEY" validate:"required"`
	EnrowCallbackApiKey         string `env:"ENROW_CALLBACK_API_KEY" validate:"required"`

	Slack struct {
		NotifyPostmarkEmail    string `env:"SLACK_NOTIFY_POSTMARK_EMAIL"`
		NotifyFlowGoalAchieved string `env:"SLACK_NOTIFY_FLOW_GOAL_ACHIEVED"`
	}
}

func InitConfig

func InitConfig() (*Config, error)

Jump to

Keyboard shortcuts

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