Documentation
¶
Overview ¶
Package bustest is the psrpc bus conformance harness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
func RegisterServer(name string, fnc ServerFunc)
Registration is per binary, so call this from an init function in a package the test binary imports.
Types ¶
type Server ¶
type Server interface {
// Repeated calls must return separate peers that can reach each other.
Connect(t testing.TB, opts ...bus.BusOption) bus.MessageBus
}
func NewLocalBus ¶
func NewLocalBus() Server
type ServerFunc ¶
Brings up a broker for the duration of the test.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dockerutil holds the container plumbing shared by the broker-backed bustest servers.
|
Package dockerutil holds the container plumbing shared by the broker-backed bustest servers. |
Click to show internal directories.
Click to hide internal directories.