feat: implement TLS support

This commit is contained in:
sujit
2024-10-02 09:29:32 +05:45
parent 7f5c8b323e
commit c596ac07a4
20 changed files with 57 additions and 178 deletions

View File

@@ -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())