Documentation
¶
Index ¶
- type LocalMailbox
- func (ps *LocalMailbox) Add(callback sabuhp.TransportResponse) *localMailboxChannel
- func (ps *LocalMailbox) Deliver(message *sabuhp.Message) error
- func (ps *LocalMailbox) DeliverTimeout(message *sabuhp.Message, timeout time.Duration) error
- func (ps *LocalMailbox) Disconnect(channel *localMailboxChannel)
- func (ps *LocalMailbox) MessageChannel() chan *sabuhp.Message
- func (ps *LocalMailbox) Start()
- func (ps *LocalMailbox) Stop()
- func (ps *LocalMailbox) Wait()
- type LocalMailer
- func (p *LocalMailer) Conn() sabuhp.Conn
- func (p *LocalMailer) Listen(topic string, callback sabuhp.TransportResponse) sabuhp.Channel
- func (p *LocalMailer) SendToAll(message *sabuhp.Message, timeout time.Duration) error
- func (p *LocalMailer) SendToOne(message *sabuhp.Message, timeout time.Duration) error
- func (p *LocalMailer) Stop()
- func (p *LocalMailer) Wait()
- type Mailbox
- func (ps *Mailbox) Add(callback sabuhp.TransportResponse) *mailboxChannel
- func (ps *Mailbox) Deliver(message *sabuhp.Message) error
- func (ps *Mailbox) DeliverTimeout(message *sabuhp.Message, timeout time.Duration) error
- func (ps *Mailbox) Disconnect(channel *mailboxChannel)
- func (ps *Mailbox) MessageChannel() chan *sabuhp.Message
- func (ps *Mailbox) Start()
- func (ps *Mailbox) Stop()
- func (ps *Mailbox) Wait()
- type Mailer
- func (p *Mailer) Conn() sabuhp.Conn
- func (p *Mailer) Listen(topic string, callback sabuhp.TransportResponse) sabuhp.Channel
- func (p *Mailer) SendToAll(message *sabuhp.Message, timeout time.Duration) error
- func (p *Mailer) SendToOne(message *sabuhp.Message, timeout time.Duration) error
- func (p *Mailer) Stop()
- func (p *Mailer) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalMailbox ¶
type LocalMailbox struct {
// contains filtered or unexported fields
}
LocalMailbox implements the underline logic necessary for providing a buffered mailbox for message delivery to specific handlers.
func NewLocalMailbox ¶
func NewLocalMailbox( ctx context.Context, mailer *LocalMailer, topic string, logger sabuhp.Logger, bufferSize int, ) *LocalMailbox
func (*LocalMailbox) Add ¶
func (ps *LocalMailbox) Add(callback sabuhp.TransportResponse) *localMailboxChannel
func (*LocalMailbox) DeliverTimeout ¶
func (*LocalMailbox) Disconnect ¶
func (ps *LocalMailbox) Disconnect(channel *localMailboxChannel)
func (*LocalMailbox) MessageChannel ¶
func (ps *LocalMailbox) MessageChannel() chan *sabuhp.Message
func (*LocalMailbox) Start ¶
func (ps *LocalMailbox) Start()
func (*LocalMailbox) Stop ¶
func (ps *LocalMailbox) Stop()
func (*LocalMailbox) Wait ¶
func (ps *LocalMailbox) Wait()
type LocalMailer ¶
type LocalMailer struct {
// contains filtered or unexported fields
}
func NewLocalMailer ¶
func (*LocalMailer) Conn ¶
func (p *LocalMailer) Conn() sabuhp.Conn
func (*LocalMailer) Listen ¶
func (p *LocalMailer) Listen(topic string, callback sabuhp.TransportResponse) sabuhp.Channel
Channel creates necessary subscription to target topic on provided transport. It also creates an internal mailbox for the delivery of those commands.
func (*LocalMailer) Stop ¶
func (p *LocalMailer) Stop()
func (*LocalMailer) Wait ¶
func (p *LocalMailer) Wait()
type Mailbox ¶
type Mailbox struct {
// contains filtered or unexported fields
}
Mailbox implements the underline logic necessary for providing a buffered mailbox for message delivery to specific handlers.
func NewMailbox ¶
func (*Mailbox) Add ¶
func (ps *Mailbox) Add(callback sabuhp.TransportResponse) *mailboxChannel
func (*Mailbox) DeliverTimeout ¶
func (*Mailbox) Disconnect ¶
func (ps *Mailbox) Disconnect(channel *mailboxChannel)
func (*Mailbox) MessageChannel ¶
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
func (*Mailer) Listen ¶
Channel creates necessary subscription to target topic on provided transport. It also creates an internal mailbox for the delivery of those commands.
Click to show internal directories.
Click to hide internal directories.