testv2

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func GetUserToken

func GetUserToken(ctx context.Context, userID string) (string, error)

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)

Jump to

Keyboard shortcuts

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