send2server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

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