testutils

package
v0.0.0-...-78a8314 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestLogger

func NewTestLogger(tb testing.TB) zerolog.Logger

func SetGlobalLogLevel

func SetGlobalLogLevel(level zerolog.Level)

func SetGlobalLogLevelDebug

func SetGlobalLogLevelDebug()

Types

type EchoClient

type EchoClient struct {
	actors.Client
	// contains filtered or unexported fields
}

func NewEchoClient

func NewEchoClient(client actors.Client) *EchoClient

func SpawnEcho

func SpawnEcho(tb testing.TB) (*EchoClient, error)

func SpawnEchoWithMgr

func SpawnEchoWithMgr(mgr actors.ManagerClient, name string) (*EchoClient, error)

func (*EchoClient) Echo

func (self *EchoClient) Echo(num int) (replyNum int)

type EchoServer

type EchoServer struct {
	actors.ServerBase
}

func (*EchoServer) HandleMsg

func (self *EchoServer) HandleMsg(msg any) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳