refactor: move examples

This commit is contained in:
sujit
2025-08-11 11:15:13 +05:45
parent bb57692cbb
commit 26460c383b
78 changed files with 12 additions and 14198 deletions

View File

@@ -1,15 +0,0 @@
package main
import (
"context"
"github.com/oarkflow/mq"
"github.com/oarkflow/mq/examples/tasks"
)
func main() {
n := &tasks.Node6{}
consumer1 := mq.NewConsumer("F", "queue1", n.ProcessTask, mq.WithBrokerURL(":8081"), mq.WithHTTPApi(true), mq.WithWorkerPool(100, 4, 50000))
consumer1.Consume(context.Background())
}