12345678910111213141516171819202122232425262728293031323334353637 |
- package common
- /// MQTT基本配置
- const (
- MqttServerTopic = "root/topic/liveroom"
- MqttClientPrefix = "root/topic/"
- MqttServerUrl = "tcp://121.196.31.98:1883"
- MqttUserName = "lzyd"
- MqttPassword = "j5ysE9DduHV14ioN"
- MqttQos = 0
- )
- const (
- MessageTypeEnterChatroom = "joinroom" // 进入房间
- MessageTypeLeaveChatroom = "leaveroom" // 离开房间
- MessageTypeChatRooms = "chatrooms" // 给聊天室发送消息
- MessageTypeChatGroups = "chatgroups" // 给群组发送消息
- MessageTypeChatUsers = "chatusers" // 给用户发送消息
- )
- const (
- MQTTClientPrefixH5 = "liveh5" // 前端H5
- MQTTClientPrefixIOS = "liveios" // 苹果
- MQTTClientPrefixAndroid = "liveandroid" // 安卓
- MQTTClientPrefixMP = "livemp" // 小程序
- MQTTClientPrefixServ = "liveserv" // 后端
- )
- const (
- AccessKeyIdOSS = "LTAI4FySYnBk5ME5AvbcgGmx"
- AccessSecretOss = "AsYT0SPtPXPe1YYAmHFi1Tfcq1Pww5"
- Endpoint = "oss-cn-hangzhou.aliyuncs.com"
- BucketName = "health-live"
- RoleArn = "acs:ram::1704590461526393:role/ramossrole"
- SessionName = "health-uploader"
- )
|