Documentation ¶
Index ¶
- Constants
- Variables
- type NSQ
- func (n *NSQ) Close(_ context.Context) error
- func (n *NSQ) DisplayError(msg *records.ErrorRecord) error
- func (n *NSQ) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
- func (n *NSQ) Name() string
- func (n *NSQ) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
- func (n *NSQ) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
- func (n *NSQ) Test(_ context.Context) error
- func (n *NSQ) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, ...) error
- func (n *NSQ) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
- type NSQLogger
Constants ¶
View Source
const BackendName = "NSQ"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type NSQ ¶
type NSQ struct {
// contains filtered or unexported fields
}
func (*NSQ) DisplayError ¶ added in v1.0.0
func (n *NSQ) DisplayError(msg *records.ErrorRecord) error
DisplayError will parse an Error record and print (pretty) output to STDOUT
func (*NSQ) DisplayMessage ¶ added in v1.0.0
func (n *NSQ) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
func (*NSQ) Read ¶
func (n *NSQ) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error
func (*NSQ) Relay ¶ added in v1.0.0
func (n *NSQ) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error
func (*NSQ) Tunnel ¶ added in v1.4.0
func (n *NSQ) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error
func (*NSQ) Write ¶
func (n *NSQ) 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.