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 ¶
View Source
var ( // Defaults are the default configuration settings Defaults = []config.Default{ {Key: SettingListen, Value: SettingListenDefault}, {Key: SettingNatsURI, Value: SettingNatsURIDefault}, {Key: SettingNatsStreamName, Value: SettingNatsStreamNameDefault}, {Key: SettingNatsSubscriberTopic, Value: SettingNatsSubscriberTopicDefault}, {Key: SettingNatsSubscriberDurable, Value: SettingNatsSubscriberDurableDefault}, {Key: SettingMongo, Value: SettingMongoDefault}, {Key: SettingDbName, Value: SettingDbNameDefault}, {Key: SettingDbSSL, Value: SettingDbSSLDefault}, {Key: SettingDbSSLSkipVerify, Value: SettingDbSSLSkipVerifyDefault}, {Key: SettingSMTPHost, Value: SettingSMTPHostDefault}, {Key: SettingSMTPAuthMechanism, Value: SettingSMTPAuthMechanismDefault}, {Key: SettingConcurrency, Value: SettingConcurrencyDefault}, {Key: SettingDebugLog, Value: SettingDebugLogDefault}, {Key: SettingNatsConsumerAckWait, Value: SettingNatsConsumerAckWaitDefault}, {Key: SettingNatsConsumerMaxDeliver, Value: SettingNatsConsumerMaxDeliverDefault}, {Key: SettingNatsConsumerMaxPending, Value: SettingNatsConsumerMaxPendingDefault}, } )
Functions ¶
func GetNatsConsumerConfig ¶
func GetNatsConsumerConfig(c config.Reader) (consumer nats.ConsumerConfig, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.