tests

package
v1.7.25 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Echo1

func Echo1(in Echo1Args, headers struct{ CID string }) (out struct {
	//func Echo1(in Echo1Args, headers map[string]string) (out struct {
	In      Echo1Args
	Headers struct{ CID string }
})

func Echo3

func Echo3(res http.ResponseWriter, in struct {
	Name string
}, req *http.Request) []string

func Echo4

func Echo4(in s.Map) s.Map

func EchoDecoder

func EchoDecoder(srcData any) (string, map[string]any, error)

func EchoEncoder

func EchoEncoder(action string, data any) any

func OnEchoClose

func OnEchoClose(client *websocket.Conn, sess *echoWsSession)

func OnEchoMessage

func OnEchoMessage(in struct {
	Action string
	Age    int
}, client *websocket.Conn, sess *echoWsSession) (string, *echoAgeData)

func OnEchoOpen

func OnEchoOpen(in struct {
	Token  string
	RoomId int
}, client *websocket.Conn) *echoWsSession

Types

type Echo1Args added in v1.7.8

type Echo1Args struct {
	Aaa int `check ^\d+$`
	Bbb string
	Ccc string
	Ddd float32
	Eee bool
	Fff any
	Ggg string
}

type Echo2Args added in v1.7.8

type Echo2Args struct {
	Echo1Args
	FilterTag  string
	FilterTag2 int
}

func Echo2

func Echo2(req *http.Request, in Echo2Args) Echo2Args

Jump to

Keyboard shortcuts

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