Documentation ¶
Index ¶
- Constants
- Variables
- type RabbitStreams
- func (r *RabbitStreams) Close(_ context.Context) error
- func (r *RabbitStreams) DisplayError(msg *records.ErrorRecord) error
- func (r *RabbitStreams) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
- func (r *RabbitStreams) Name() string
- func (r *RabbitStreams) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
- func (r *RabbitStreams) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
- func (r *RabbitStreams) Test(_ context.Context) error
- func (r *RabbitStreams) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, ...) error
- func (r *RabbitStreams) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
Constants ¶
View Source
const BackendName = "rabbitmq-streams"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RabbitStreams ¶
type RabbitStreams struct {
// contains filtered or unexported fields
}
func New ¶
func New(connOpts *opts.ConnectionOptions) (*RabbitStreams, error)
func (*RabbitStreams) DisplayError ¶
func (r *RabbitStreams) DisplayError(msg *records.ErrorRecord) error
DisplayError will parse an Error record and print (pretty) output to STDOUT
func (*RabbitStreams) DisplayMessage ¶
func (r *RabbitStreams) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
func (*RabbitStreams) Name ¶
func (r *RabbitStreams) Name() string
func (*RabbitStreams) Read ¶
func (r *RabbitStreams) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error
func (*RabbitStreams) Relay ¶
func (r *RabbitStreams) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error
func (*RabbitStreams) Tunnel ¶ added in v1.4.0
func (r *RabbitStreams) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error
func (*RabbitStreams) Write ¶
func (r *RabbitStreams) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error
Click to show internal directories.
Click to hide internal directories.