MCPcopy Create free account
hub / github.com/assembla/cony / AutoTag

Function AutoTag

consumer.go:127–133  ·  view source on GitHub ↗

AutoTag set automatically generated tag like this fmt.Sprintf(QueueName+"-pid-%d@%s", os.Getpid(), os.Hostname())

()

Source from the content-addressed store, hash-verified

125// AutoTag set automatically generated tag like this
126// fmt.Sprintf(QueueName+"-pid-%d@%s", os.Getpid(), os.Hostname())
127func AutoTag() ConsumerOpt {
128 return func(c *Consumer) {
129 host, _ := os.Hostname()
130 tag := fmt.Sprintf(c.q.Name+"-pid-%d@%s", os.Getpid(), host)
131 Tag(tag)(c)
132 }
133}
134
135// AutoAck set this consumer in AutoAck mode
136func AutoAck() ConsumerOpt {

Callers 1

TestAutoTagFunction · 0.85

Calls 1

TagFunction · 0.85

Tested by 1

TestAutoTagFunction · 0.68