Documentation ¶
Index ¶
- func ClientConn(t *testing.T, lis *bufconn.Listener) *grpc.ClientConn
- func NewRunningServer(t *testing.T, init func(*grpc.Server)) (*grpc.Server, *grpc.ClientConn, *bufconn.Listener)
- func NewServer(t *testing.T, init func(*grpc.Server)) (*grpc.Server, *grpc.ClientConn, *bufconn.Listener)
- func SetupEvents() (*codec.Registry, event.Bus, event.Store)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.