send2server

package module
v0.0.0-...-3a28f6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

README

send to server

发送消息到 server的方法封装

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMsgToServer

func SendMsgToServer(msgStruct interface{}, serverRouter, serverChannel, serverToken, serverPath string) (ret string, err error)

var msg feedmsg.FeedRichMsgModel var msgType, msgID, msgTime, textContent, textContentEx, textContentExPic, imagePicURL, imageFilePath string msgType = "text" textContent = "Hello,world223" msg = feedmsg.NewFeedRichMsg(msgType, msgID, msgTime, textContent, textContentEx, textContentExPic, imagePicURL, imageFilePath) sendMsgToServer(msg, "", "","","") //http://127.0.0.1:8080/ws/push/xxx

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL