Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { File string `json:"-"` Rabbit *RabbitConfig `json:"rabbit,omitempty"` Database *DatabaseConfig `json:"database,omitempty"` Consul *ConsulConfig `json:"consul,omitempty"` Watcher *WatcherConfig `json:"watcher,omitempty"` }
func LoadConfig ¶
type ConsulConfig ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Url string `json:"url" flag:"data_source|| Data source"`
}
type RabbitConfig ¶
type RabbitConfig struct {
Url string `json:"url" flag:"amqp|| AMQP connection"`
}
type WatcherConfig ¶
type WatcherConfig struct { ExchangeName string `json:"exchange" flag:"watcher_exchange || trigger_exchange"` CreateQueueName string `json:"create_queue" flag:"create_queue || create_queue"` UpdateQueueName string `json:"update_queue" flag:"update_queue || update_queue"` DeleteQueueName string `json:"delete_queue" flag:"delete_queue || delete_queue"` AMQPUser string `json:"amqp_user" flag:"amqp_user || AMQP user"` QueuesMessagesTTL string `json:"queues_messages_ttl" flag:"watcher_messages_ttl || Watcher queues messages TTL in milliseconds"` Enabled bool `json:"watch_enabled" flag:"watch_enabled || watch_enabled"` }
Click to show internal directories.
Click to hide internal directories.