Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel string `mapstructure:"log_level"` Consumer config.ConsumerCfg `mapstructure:"consumer"` DB store.Config `mapstructure:"db"` Storage config.StorageCfg `mapstructure:"storage"` }
Config represents our application config.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the PE scan service. It adheres to the nsq.Handler interface. This allows us to define our own custom handlers for our messages. Think of these handlers much like you would an http handler.
func (*Service) HandleMessage ¶
HandleMessage is the only requirement needed to fulfill the nsq.Handler.
Click to show internal directories.
Click to hide internal directories.