将字节数组传递到 Azure 存储队列

问题描述

我正在使用 Go 包 github.com/golang/protobuf/proto,我需要将 Protobuff 加入存储队列。但根据库文档,Enqueue 函数仅将消息作为字符串。

  • 来自 go 库:
*func (m MessagesURL) Enqueue(ctx context.Context,messageText string,visibilityTimeout time.Duration,timeToLive time.Duration) (*EnqueueMessageResponse,error)*

有没有办法将 protobuff 字节数组加入 Azure 存储队列?

图书馆链接: https://pkg.go.dev/github.com/Azure/azure-storage-queue-go/azqueue#MessagesURL.Enqueue

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)