testEnv

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func InitEdgeServerWithWebsocket

func InitEdgeServerWithWebsocket(serverID string, listenPort int, concurrency int, opts ...edge.Option) *edge.Server

func InitTestServer added in v0.0.6

func InitTestServer(serverID string) *edgetest.Server

func ReceivedMessages

func ReceivedMessages() int32

func ReceivedUpdates

func ReceivedUpdates() int32

func ResetCounters

func ResetCounters()

Types

type Handlers

type Handlers struct {
	ServerID string
}

func (*Handlers) Echo

func (h *Handlers) Echo(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)

func (*Handlers) EchoDelay added in v0.1.9

func (h *Handlers) EchoDelay(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)

func (*Handlers) EchoLeaderOnly added in v0.1.5

func (h *Handlers) EchoLeaderOnly(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)

func (*Handlers) EchoTunnel added in v0.1.5

func (h *Handlers) EchoTunnel(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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