Documentation ¶
Index ¶
- Constants
- Variables
- func ConsumerFromConfig(c Config, l loggers.Logger) (consumer.Consumer, error)
- func NewHandler(h Handler) nsq.Handler
- func ProducerFromConfig(c Config, l loggers.Logger) (producer.Producer, error)
- type Config
- type Consumer
- type Handler
- type LogLevel
- type Logger
- type Nsq
- type Producer
Constants ¶
View Source
const ( LogLevelDebug = LogLevel("debug") LogLevelInfo = LogLevel("info") LogLevelError = LogLevel("error") LogLevelWarning = LogLevel("warning") )
View Source
const (
Name = "nsq"
)
Variables ¶
View Source
var ( NsqLogLevel = map[LogLevel]nsq.LogLevel{ LogLevelDebug: nsq.LogLevelDebug, LogLevelInfo: nsq.LogLevelInfo, LogLevelError: nsq.LogLevelError, LogLevelWarning: nsq.LogLevelWarning, } )
Functions ¶
func ConsumerFromConfig ¶
func NewHandler ¶
func NewHandler(h Handler) nsq.Handler
Types ¶
type Handler ¶
func (Handler) HandleMessage ¶
Click to show internal directories.
Click to hide internal directories.