config

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQSetting

type RabbitMQSetting struct {
	Enabled          bool               `json:"enabled"`
	Addr             string             `json:"addr"`
	HelloWorld       RabbitQueueSetting `json:"helloWorld" yaml:"helloWorld"`
	WorkQueue        RabbitQueueSetting `json:"workQueue" yaml:"workQueue"`
	PublishSubscribe RabbitQueueSetting `json:"publishSubscribe" yaml:"publishSubscribe"`
	Routing          RabbitQueueSetting `json:"routing" yaml:"routing"`
	Topic            RabbitQueueSetting `json:"topic" yaml:"topic"`
}
var Setting *RabbitMQSetting = &RabbitMQSetting{
	Enabled: false,
}

type RabbitQueueSetting

type RabbitQueueSetting struct {
	QueueName                string        `json:"queueName" yaml:"queueName"`
	Durable                  bool          `json:"durable" yaml:"durable"`
	ConsumerChannelNumber    int           `json:"consumerChannelNumber" yaml:"consumerChannelNumber"`
	OfflineReconnectInterval time.Duration `json:"offlineReconnectInterval" yaml:"offlineReconnectInterval"`
	RetryCount               int           `json:"retryCount" yaml:"retryCount"`
	ExchangeType             string        `json:"exchangeType" yaml:"exchangeType"`
	ExchangeName             string        `json:"exchangeName" yaml:"exchangeName"`
	DelayedExchangeName      string        `json:"delayedExchangeName" yaml:"delayedExchangeName"`
}

Jump to

Keyboard shortcuts

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