Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDispatcher ¶
type LocalDispatcher struct {
// contains filtered or unexported fields
}
func NewLocalDispatcher ¶
func NewLocalDispatcher(ctx context.Context) *LocalDispatcher
NewLocalDispatcher creates a new LocalDispatcher with a dedicated goroutine for processing.
func (*LocalDispatcher) Publish ¶
func (ed *LocalDispatcher) Publish(subject string, data interface{}) error
Publish sends a message to all subscribers of the given subject.
type NatsDispatcher ¶
type NatsDispatcher struct {
// contains filtered or unexported fields
}
func NewNatsDispatcher ¶
func NewNatsDispatcher(ctx context.Context, nc *nats.Conn, handler Encoder) (*NatsDispatcher, error)
NewNatsDispatcher creates a new NatsDispatcher with a dedicated goroutine for processing.
func (*NatsDispatcher) Close ¶
func (d *NatsDispatcher) Close()
Close stops the dispatcher and cleans up resources.
func (*NatsDispatcher) Publish ¶
func (d *NatsDispatcher) Publish(subject string, data interface{}) error
Publish sends a message to all subscribers of the given subject.
type NatsJetDispatcher ¶
type NatsJetDispatcher struct {
// contains filtered or unexported fields
}
func NewNatsJetDispatcher ¶
func NewNatsJetDispatcher(ctx context.Context, nc *nats.Conn, handler Encoder) (*NatsJetDispatcher, error)
NewNatsJetDispatcher creates a new NatsJetDispatcher with a dedicated goroutine for processing.
func (*NatsJetDispatcher) Publish ¶
func (d *NatsJetDispatcher) Publish(subject string, data interface{}) error
Publish sends a message to all subscribers of the given subject.
type StreamConsumer ¶
type StreamConsumer struct {
// contains filtered or unexported fields
}
type SubjectConsumer ¶
type SubjectConsumer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.