clitest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConn

func ClientConn(t *testing.T, lis *bufconn.Listener) *grpc.ClientConn

ClientConn returns a *grpc.ClientConn that dials using the provided *bufconn.Listener.

func NewRunningServer

func NewRunningServer(t *testing.T, init func(*grpc.Server)) (*grpc.Server, *grpc.ClientConn, *bufconn.Listener)

NewRunningServer returns the same as NewServer, but also starts the server in a new goroutine.

func NewServer

func NewServer(t *testing.T, init func(*grpc.Server)) (*grpc.Server, *grpc.ClientConn, *bufconn.Listener)

NewServer returns a new *grpc.Server and a *grpc.ClientConn that is connected to the returned *bufconn.Listener.

func SetupEvents

func SetupEvents() (*codec.Registry, event.Bus, event.Store)

SetupEvents returns an event registry, bus and store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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