testEnv

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server *edgetest.Server
)

Functions

func EchoHold added in v0.1.2

func EchoHold(ctx *edge.RequestCtx, in *rony.MessageEnvelope)

func EchoSimple added in v0.0.6

func EchoSimple(ctx *edge.RequestCtx, in *rony.MessageEnvelope)

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{}

func (Handlers) Ask

func (h Handlers) Ask(ctx *edge.RequestCtx, req *pb.AskRequest, res *pb.AskResponse)

func (Handlers) Echo

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

func (Handlers) Func1

func (h Handlers) Func1(ctx *edge.RequestCtx, req *pb.Req1, res *pb.Res1)

func (Handlers) Func2

func (h Handlers) Func2(ctx *edge.RequestCtx, req *pb.Req2, res *pb.Res2)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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