client

package
v0.0.0-...-13b6049 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMClient

type IMClient struct {
	Token    string
	UserID   string
	ApiURL   string
	JssdkURL string
	Platform int
	Conn     *websocket.Conn
	Lock     sync.Mutex
}

func NewIMClient

func NewIMClient(token, userID, apiURL, jssdkURL string, platform int) *IMClient

func (*IMClient) CreateTextMessage

func (i *IMClient) CreateTextMessage(userID string) error

func (*IMClient) GetALLUserIDList

func (i *IMClient) GetALLUserIDList() ([]string, error)

func (*IMClient) GetAllConversationList

func (i *IMClient) GetAllConversationList() error

func (*IMClient) GetBlackList

func (i *IMClient) GetBlackList() error

func (*IMClient) GetFriendList

func (i *IMClient) GetFriendList() error

func (*IMClient) GetJoinedGroupList

func (i *IMClient) GetJoinedGroupList() error

func (*IMClient) GetLoginStatus

func (i *IMClient) GetLoginStatus() error

func (*IMClient) GetRecvFriendApplicationList

func (i *IMClient) GetRecvFriendApplicationList() error

func (*IMClient) GetRecvGroupApplicationList

func (i *IMClient) GetRecvGroupApplicationList() error

func (*IMClient) GetSelfUserInfo

func (i *IMClient) GetSelfUserInfo() error

func (*IMClient) GetSendFriendApplicationList

func (i *IMClient) GetSendFriendApplicationList() error

func (*IMClient) GetSendGroupApplicationList

func (i *IMClient) GetSendGroupApplicationList() error

func (*IMClient) GetToken

func (i *IMClient) GetToken() (string, error)

func (*IMClient) SendMsg

func (i *IMClient) SendMsg(userID string, msg interface{}) error

func (*IMClient) WsLogin

func (i *IMClient) WsLogin() error

func (*IMClient) WsLogout

func (i *IMClient) WsLogout() error

Jump to

Keyboard shortcuts

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