mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-04 15:42:49 +08:00
feat: implement TLS support
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
func main() {
|
||||
b := mq.NewBroker(mq.WithCallback(tasks.Callback))
|
||||
// b := mq.NewBroker(mq.WithCallback(tasks.Callback), mq.WithTLS(true, "./certs/server.crt", "./certs/server.key"), mq.WithCAPath("./certs/ca.cert"))
|
||||
b.NewQueue("queue1")
|
||||
b.NewQueue("queue2")
|
||||
b.Start(context.Background())
|
||||
|
Reference in New Issue
Block a user