Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingAddress = errors.New("you must specify either --nsqd-address or --lookupd-address") ErrChooseAddress = errors.New("you must specify either --nsqd-address or --lookupd-address, not both") ErrMissingTLSKey = errors.New("--tls-client-key-file cannot be blank if using TLS") ErrMissingTlsCert = errors.New("--tls-client-cert-file cannot be blank if using TLS") ErrMissingTLSCA = errors.New("--tls-ca-file cannot be blank if using TLS") )
Functions ¶
func Read ¶
func Read(opts *cli.Options, md *desc.MessageDescriptor) error
Read is the entry point function for performing read operations in NSQ
Types ¶
type NSQ ¶
type NSQ struct { Options *cli.Options MsgDesc *desc.MessageDescriptor Producer *nsq.Producer // contains filtered or unexported fields }
NSQ encapsulates options for calling Read() and Write() methods
type NSQLogger ¶
NSQLogger wraps logrus and implements the Output() method so we can satisfy the interface requirements for NSQ's logger
Click to show internal directories.
Click to hide internal directories.