{"modulePath":"github.com/infinitbyte/framework","version":"v1.1.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package consumer\n\n## Functions\n\n```go\nfunc New(c *config.Config) (pipeline.Processor, error)\n```\n\n## Types\n\n```go\ntype Config struct {\n\tNumOfSlices int   `config:\"num_of_slices\"`\n\tSlices      []int `config:\"slices\"`\n\n\tIdleTimeoutInSecond     int                    `config:\"idle_timeout_in_seconds\"`\n\tMaxConnectionPerHost    int                    `config:\"max_connection_per_node\"`\n\tQueueLabels             map[string]interface{} `config:\"queues,omitempty\"`\n\tSelector                queue.QueueSelector    `config:\"queue_selector\"`\n\tConsumer                *queue.ConsumerConfig  `config:\"consumer\"`\n\tMaxWorkers              int                    `config:\"max_worker_size\"`\n\tDetectActiveQueue       bool                   `config:\"detect_active_queue\"`\n\tDetectIntervalInMs      int                    `config:\"detect_interval\"`\n\tQuitDetectAfterIdleInMs int                    `config:\"quite_detect_after_idle_in_ms\"`\n\n\tMessageProcessors []*config.Config `config:\"processor\"`\n\n\tSkipEmptyQueue bool `config:\"skip_empty_queue\"`\n\tQuitOnEOFQueue bool `config:\"quit_on_eof_queue\"`\n\n\tQuitNeedTag     bool   `config:\"quit_need_tag\"`      //need tag to quit, or wait for timeout\n\tQuitNeedTagName string `config:\"quit_need_tag_name\"` //need tag to quit, or wait for timeout\n\n\tQueueField             string   `config:\"queue_name_field\"`\n\tMessageField           string   `config:\"message_field\"`\n\tWaitingAfter           []string `config:\"waiting_after\"`\n\tRetryDelayIntervalInMs int      `config:\"retry_delay_interval\"`\n\tAutoCommitOffset       bool     `config:\"auto_commit_offset\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype MessageHandlerAPI interface {\n\tHandleMessages(c *pipeline.Context, msgs []queue.Message) (bool, error)\n}\n```\n\n```go\ntype QueueConsumerProcessor struct {\n\tsync.RWMutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (processor *QueueConsumerProcessor) HandleQueueConfig(qConfig *queue.QueueConfig, ctx *pipeline.Context) error\n```\n\n```go\nfunc (processor *QueueConsumerProcessor) Name() string\n```\n\n```go\nfunc (processor *QueueConsumerProcessor) NewSlicedWorker(ctx *pipeline.Context, v ...interface{})\n```\n\n```go\nfunc (processor *QueueConsumerProcessor) Process(c *pipeline.Context) error\n```\n\n```go\nfunc (processor *QueueConsumerProcessor) Release() error\n```\n\n","path":"github.com/infinitbyte/framework/plugins/queue/consumer","name":"consumer","synopsis":"","isRedistributable":true}
