testutils

package
v0.0.0-...-d11619d Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 7 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 mailbox.Msg) (err error)

Jump to

Keyboard shortcuts

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