Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MessageRouter MessageRouter
Log Log
}
Config uses the "github.com/kelseyhightower/envconfig" library to parse env vars to this configuration
type MessageRouter ¶
type MessageRouter struct {
// SALAD_MESSAGEROUTER_URL
URL string `required:"true"`
// SALAD_MESSAGEROUTER_TCPTIMEOUT
TCPTimout time.Duration `default:"1m"`
// SALAD_MESSAGEROUTER_MAXRETRY
MaxRetry int `default:"5"`
// SALAD_MESSAGEROUTER_RETRYSLEEP
RetrySleep time.Duration `default:"1s"`
}
The Message router is the service which dispatches messages to our processor
Click to show internal directories.
Click to hide internal directories.