Documentation
¶
Index ¶
- Variables
- type Body
- type Config
- func (c Config) GetConsumer(name string) (ConsumerConfig, error)
- func (c Config) GetExchange(name string) (ExchangeConfig, error)
- func (c Config) GetProducer(name string) (ProducerConfig, error)
- func (c Config) GetQueue(name string) (QueueConfig, error)
- func (c Config) GetRoute(i interface{}) (RouteConfig, error)
- type Consumer
- type ConsumerConfig
- type Controller
- type ExchangeConfig
- type Handled
- type MessageHandlerFunc
- type MessageType
- type NoReply
- type ProducerConfig
- type PublishMessage
- type PublishedMessage
- type QueueConfig
- type RouteConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigNotFound = errors.New("config not found")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig( consumers map[string]ConsumerConfig, exchanges map[string]ExchangeConfig, queues map[string]QueueConfig, producers map[string]ProducerConfig, routing map[interface{}]RouteConfig, ) Config
func (Config) GetConsumer ¶
func (c Config) GetConsumer(name string) (ConsumerConfig, error)
func (Config) GetExchange ¶
func (c Config) GetExchange(name string) (ExchangeConfig, error)
func (Config) GetProducer ¶
func (c Config) GetProducer(name string) (ProducerConfig, error)
func (Config) GetRoute ¶
func (c Config) GetRoute(i interface{}) (RouteConfig, error)
type ConsumerConfig ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (Controller) Publish ¶
func (p Controller) Publish(msg PublishMessage) (PublishedMessage, error)
type ExchangeConfig ¶
type Handled ¶
type Handled struct {
// contains filtered or unexported fields
}
func HandledAndRejected ¶
func HandledAndRejected() Handled
func HandledNotSuccessfully ¶
func HandledSuccessfully ¶
func HandledSuccessfully() Handled
type MessageHandlerFunc ¶
type MessageType ¶
type MessageType string
const ( MessageRegular MessageType = "regular" MessageWithReply MessageType = "with_reply" )
type ProducerConfig ¶
type PublishMessage ¶
type PublishMessage struct {
// contains filtered or unexported fields
}
func MessageToPublish ¶
func MessageToPublish(msg interface{}) PublishMessage
func MessageToPublishWithReply ¶
func MessageToPublishWithReply(msg interface{}, handler MessageHandlerFunc) PublishMessage
type PublishedMessage ¶
type QueueConfig ¶
type RouteConfig ¶
type RouteConfig struct {
Type interface{}
Producer string
}
Click to show internal directories.
Click to hide internal directories.