Documentation ¶
Index ¶
- Constants
- type Channels
- type Mailer
- func (m *Mailer) GetBody() string
- func (m *Mailer) GetMimeHeaders() string
- func (m *Mailer) GetSubject() string
- func (m *Mailer) GetTo() string
- func (m *Mailer) Send() error
- func (m *Mailer) SetBody(body string)
- func (m *Mailer) SetConfig(config map[string]string)
- func (m *Mailer) SetMimeHeaders(mimeHeaders string)
- func (m *Mailer) SetSubject(subject string)
- func (m *Mailer) SetTo(to string)
- type Rabbit
- func (r *Rabbit) Consume(queue string, callback func(amqp.Delivery)) error
- func (r *Rabbit) DeclareExchange(exchange string) error
- func (r *Rabbit) DeclareQueue(queue, exchange, routingKey string) error
- func (r *Rabbit) Disconnect() error
- func (r *Rabbit) IsConnected() bool
- func (r *Rabbit) Publish(exchange, routingKey string, body []byte) error
- func (r *Rabbit) PublishFromCache(messageService *migration.MessageService) error
- type RabbitConfig
Constants ¶
View Source
const (
MESSAGING_TIMEOUT = 30
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channels ¶
type Channels struct { // Channel for sending messages to the messaging adapter SMS chan map[string]string // Channel for sending messages to the messaging adapter Email chan map[string]interface{} // Channel for sending messages to the messaging adapter Whatsapp chan map[string]interface{} }
func NewChannels ¶
func NewChannels() *Channels
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
func (*Mailer) GetMimeHeaders ¶
func (*Mailer) GetSubject ¶
func (*Mailer) SetMimeHeaders ¶
func (*Mailer) SetSubject ¶
type Rabbit ¶ added in v0.10.0
type Rabbit struct {
// contains filtered or unexported fields
}
func (*Rabbit) DeclareExchange ¶ added in v0.10.0
func (*Rabbit) DeclareQueue ¶ added in v0.10.0
func (*Rabbit) Disconnect ¶ added in v0.10.0
func (*Rabbit) IsConnected ¶ added in v0.10.0
func (*Rabbit) PublishFromCache ¶ added in v0.10.0
func (r *Rabbit) PublishFromCache(messageService *migration.MessageService) error
type RabbitConfig ¶ added in v0.10.0
type RabbitConfig struct { DSN string `json:"dsn"` // contains filtered or unexported fields }
func (*RabbitConfig) LoadRabbitConfig ¶ added in v0.10.0
func (r *RabbitConfig) LoadRabbitConfig(file string) error
Click to show internal directories.
Click to hide internal directories.