Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func (Consumer) HandleMessage ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) GetMessageBody ¶
func (*Message) GetNsqMessage ¶
func (m *Message) GetNsqMessage() *nsq.Message
type NSQConsumer ¶
type NSQConsumer struct {
// contains filtered or unexported fields
}
func (*NSQConsumer) Run ¶
func (nc *NSQConsumer) Run(c *consumer.ConsumerEntity) error
func (*NSQConsumer) Stop ¶
func (nc *NSQConsumer) Stop()
func (*NSQConsumer) UpdateConfig ¶ added in v0.12.0
func (nc *NSQConsumer) UpdateConfig(config *common.Config)
type Options ¶
type Options struct { Channel string `flag:"channel"` ConsumerOpts []string `flag:"consumer-opt"` MaxInFlight int `flag:"max-in-flight"` HTTPClientConnectTimeout time.Duration `flag:"http-client-connect-timeout"` HTTPClientRequestTimeout time.Duration `flag:"http-client-request-timeout"` LogPrefix string `flag:"log-prefix"` LogLevel string `flag:"log-level"` OutputDir string `flag:"output-dir"` WorkDir string `flag:"work-dir"` // DatetimeFormat string `flag:"datetime-format"` SyncInterval time.Duration `flag:"sync-interval"` }
Options options for config
Click to show internal directories.
Click to hide internal directories.