test

package
v3.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func GetUserToken added in v3.8.1

func GetUserToken(ctx context.Context, userID string, platformID int32, secret string, imConf sdk_struct.IMConfig) (string, error)

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)

Jump to

Keyboard shortcuts

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