config

package
v0.0.0-...-b8cfde1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SettingListen is the config key for the listen address
	SettingListen = "listen"
	// SettingListenDefault is the default value for the listen address
	SettingListenDefault = ":8080"

	// SettingNatsURI is the config key for the nats uri
	SettingNatsURI = "nats_uri"
	// SettingNatsURIDefault is the default value for the nats uri
	SettingNatsURIDefault = "nats://mender-nats:4222"

	// SettingNatsStreamName is the config key for the nats streaem name
	SettingNatsStreamName = "nats_stream_name"
	// SettingNatsStreamNameDefault is the default value for the nats stream name
	SettingNatsStreamNameDefault = "WORKFLOWS"

	// SettingNatsSubscriberTopic is the config key for the nats subscriber topic name
	SettingNatsSubscriberTopic = "nats_subscriber_topic"
	// SettingNatsSubscriberTopicDefault is the default value for the nats subscriber topic name
	SettingNatsSubscriberTopicDefault = "default"

	// SettingNatsSubscriberDurable is the config key for the nats subscriber durable name
	SettingNatsSubscriberDurable = "nats_subscriber_durable"
	// SettingNatsSubscriberDurableDefault is the default value for the nats subscriber durable name
	SettingNatsSubscriberDurableDefault = "workflows-worker"

	SettingsNats = "nats"

	SettingNatsConsumer                  = SettingsNats + ".consumer"
	SettingNatsConsumerAckWait           = SettingNatsConsumer + ".ack_wait"
	SettingNatsConsumerAckWaitDefault    = "30s"
	SettingNatsConsumerMaxDeliver        = SettingNatsConsumer + ".max_deliver"
	SettingNatsConsumerMaxDeliverDefault = 3
	SettingNatsConsumerMaxPending        = SettingNatsConsumer + ".max_pending"
	SettingNatsConsumerMaxPendingDefault = 1000

	// SettingMongo is the config key for the mongo URL
	SettingMongo = "mongo-url"
	// SettingMongoDefault is the default value for the mongo URL
	SettingMongoDefault = "mongodb://mender-mongo:27017"

	// SettingDbName is the config key for the mongo database name
	SettingDbName = "mongo-dbname"
	// SettingDbNameDefault is the default value for the mongo database name
	SettingDbNameDefault = "workflows"

	// SettingDbSSL is the config key for the mongo SSL setting
	SettingDbSSL = "mongo_ssl"
	// SettingDbSSLDefault is the default value for the mongo SSL setting
	SettingDbSSLDefault = false

	// SettingDbSSLSkipVerify is the config key for the mongo SSL skip verify setting
	SettingDbSSLSkipVerify = "mongo_ssl_skipverify"
	// SettingDbSSLSkipVerifyDefault is the default value for the mongo SSL skip verify setting
	SettingDbSSLSkipVerifyDefault = false

	// SettingDbUsername is the config key for the mongo username
	SettingDbUsername = "mongo_username"

	// SettingDbPassword is the config key for the mongo password
	SettingDbPassword = "mongo_password"

	// SettingSMTPHost is the config key for the SMTP host
	SettingSMTPHost = "smtp_host"
	// SettingSMTPHostDefault is the default value for the SMTP host
	SettingSMTPHostDefault = "localhost:25"

	// SettingSMTPAuthMechanism is the config key for the SMTP auth mechanism
	SettingSMTPAuthMechanism = "smtp_auth_mechanism"
	// SettingSMTPAuthMechanismDefault is the default value for the SMTP auth mechanism
	SettingSMTPAuthMechanismDefault = "PLAIN"

	// SettingSMTPUsername is the config key for the SMTP username
	SettingSMTPUsername = "smtp_username"

	// SettingSMTPPassword is the config key for the SMTP password
	SettingSMTPPassword = "smtp_password"

	// SettingWorkflowsPath is the config key for the workflows path
	SettingWorkflowsPath = "workflows_path"

	// SettingConcurrency is the config key for the concurrency limit
	SettingConcurrency = "concurrency"
	// SettingConcurrencyDefault is the default value for the concurrency limit
	SettingConcurrencyDefault = 10

	// SettingDebugLog is the config key for the truning on the debug log
	SettingDebugLog = "debug_log"
	// SettingDebugLogDefault is the default value for the debug log enabling
	SettingDebugLogDefault = false
)

Variables

Functions

func GetNatsConsumerConfig

func GetNatsConsumerConfig(c config.Reader) (consumer nats.ConsumerConfig, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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