testv2

package
v3.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APIADDR = "http://172.16.8.38:10002"
	WSADDR  = "ws://172.16.8.38:10001"
	UserID  = "1600918051"
)

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()

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