Documentation ¶
Index ¶
- Constants
- func GetUserToken(ctx context.Context, userID string, platformID int32, secret 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://127.0.0.1:10002" WSADDR = "ws://127.0.0.1:10001" UserID = "2237746339" )
View Source
const ( PlatformID = constant.LinuxPlatformID Secret = "openIM123" AdminUserID = "imAdmin" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OnConnListener ¶ added in v3.8.1
type OnConnListener struct{}
func (*OnConnListener) OnConnectFailed ¶ added in v3.8.1
func (c *OnConnListener) OnConnectFailed(errCode int32, errMsg string)
func (*OnConnListener) OnConnectSuccess ¶ added in v3.8.1
func (c *OnConnListener) OnConnectSuccess()
func (*OnConnListener) OnConnecting ¶ added in v3.8.1
func (c *OnConnListener) OnConnecting()
func (*OnConnListener) OnKickedOffline ¶ added in v3.8.1
func (c *OnConnListener) OnKickedOffline()
func (*OnConnListener) OnUserTokenExpired ¶ added in v3.8.1
func (c *OnConnListener) OnUserTokenExpired()
func (*OnConnListener) OnUserTokenInvalid ¶ added in v3.8.1
func (c *OnConnListener) OnUserTokenInvalid(errMsg string)
type TestSendMsg ¶ added in v3.8.1
type TestSendMsg struct { }
func (TestSendMsg) OnError ¶ added in v3.8.1
func (TestSendMsg) OnError(code int32, msg string)
func (TestSendMsg) OnProgress ¶ added in v3.8.1
func (TestSendMsg) OnProgress(progress int)
func (TestSendMsg) OnSuccess ¶ added in v3.8.1
func (TestSendMsg) OnSuccess(data string)
Click to show internal directories.
Click to hide internal directories.