Documentation ¶
Index ¶
- Constants
- Variables
- type RabbitMQ
- func (r *RabbitMQ) Close(_ context.Context) error
- func (r *RabbitMQ) DisplayError(msg *records.ErrorRecord) error
- func (r *RabbitMQ) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
- func (r *RabbitMQ) Dynamic(ctx context.Context, opts *opts.DynamicOptions, dynamicSvc dynamic.IDynamic) error
- func (r *RabbitMQ) Name() string
- func (r *RabbitMQ) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
- func (r *RabbitMQ) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
- func (r *RabbitMQ) Test(_ context.Context) error
- func (r *RabbitMQ) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
Constants ¶
View Source
const (
BackendName = "rabbitmq"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
RabbitMQ holds all attributes required for performing a read/write operations in RabbitMQ. This struct should be instantiated via the rabbitmq.Read(..) or rabbitmq.Write(..) functions.
func (*RabbitMQ) DisplayError ¶ added in v1.0.0
func (r *RabbitMQ) DisplayError(msg *records.ErrorRecord) error
DisplayError will parse an Error record and print (pretty) output to STDOUT
func (*RabbitMQ) DisplayMessage ¶ added in v1.0.0
func (r *RabbitMQ) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
DisplayMessage will parse a Read record and print (pretty) output to STDOUT
func (*RabbitMQ) Read ¶
func (r *RabbitMQ) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error
func (*RabbitMQ) Relay ¶ added in v1.0.0
func (r *RabbitMQ) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan *records.ErrorRecord) error
func (*RabbitMQ) Write ¶
func (r *RabbitMQ) 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.