Tag the consumer
(tag string)
| 117 | |
| 118 | // Tag the consumer |
| 119 | func Tag(tag string) ConsumerOpt { |
| 120 | return func(c *Consumer) { |
| 121 | c.tag = tag |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // AutoTag set automatically generated tag like this |
| 126 | // fmt.Sprintf(QueueName+"-pid-%d@%s", os.Getpid(), os.Hostname()) |