Documentation ¶
Index ¶
- Constants
- func GetUserToken(ctx context.Context, userID string) (string, error)
- type OnConnListener
- func (c *OnConnListener) OnConnectFailed(errCode int32, errMsg string)
- func (c *OnConnListener) OnConnectSuccess()
- func (c *OnConnListener) OnConnecting()
- func (c *OnConnListener) OnKickedOffline()
- func (c *OnConnListener) OnUserTokenExpired()
- func (c *OnConnListener) OnUserTokenInvalid(errMsg string)
- type TestSendMsg
Constants ¶
View Source
const ( APIADDR = "http://172.16.8.48:10002" WSADDR = "ws://172.16.8.48:10001" UserID = "7327731536" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OnConnListener ¶
type OnConnListener struct{}
func (*OnConnListener) OnConnectFailed ¶
func (c *OnConnListener) OnConnectFailed(errCode int32, errMsg string)
func (*OnConnListener) OnConnectSuccess ¶
func (c *OnConnListener) OnConnectSuccess()
func (*OnConnListener) OnConnecting ¶
func (c *OnConnListener) OnConnecting()
func (*OnConnListener) OnKickedOffline ¶
func (c *OnConnListener) OnKickedOffline()
func (*OnConnListener) OnUserTokenExpired ¶
func (c *OnConnListener) OnUserTokenExpired()
func (*OnConnListener) OnUserTokenInvalid ¶ added in v3.8.0
func (c *OnConnListener) OnUserTokenInvalid(errMsg string)
type TestSendMsg ¶
type TestSendMsg struct { }
func (TestSendMsg) OnError ¶
func (TestSendMsg) OnError(code int32, msg string)
func (TestSendMsg) OnProgress ¶
func (TestSendMsg) OnProgress(progress int)
func (TestSendMsg) OnSuccess ¶
func (TestSendMsg) OnSuccess(data string)
Click to show internal directories.
Click to hide internal directories.