Documentation ¶
Overview ¶
Package yarpctest provides utilities to test YARPC services and clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePeer ¶ added in v1.8.0
type FakePeer struct {
// contains filtered or unexported fields
}
FakePeer is a fake peer with an identifier.
func (*FakePeer) EndRequest ¶ added in v1.8.0
func (p *FakePeer) EndRequest()
EndRequest does nothing.
func (*FakePeer) Identifier ¶ added in v1.8.0
Identifier returns the fake peer identifier.
func (*FakePeer) StartRequest ¶ added in v1.8.0
func (p *FakePeer) StartRequest()
StartRequest does nothing.
type FakeTransport ¶ added in v1.8.0
FakeTransport is a fake transport.
func NewFakeTransport ¶ added in v1.8.0
func NewFakeTransport() *FakeTransport
NewFakeTransport returns a fake transport.
func (*FakeTransport) ReleasePeer ¶ added in v1.8.0
func (t *FakeTransport) ReleasePeer(id peer.Identifier, ps peer.Subscriber) error
ReleasePeer does nothing.
func (*FakeTransport) RetainPeer ¶ added in v1.8.0
func (t *FakeTransport) RetainPeer(id peer.Identifier, ps peer.Subscriber) (peer.Peer, error)
RetainPeer returns a fake peer.
Click to show internal directories.
Click to hide internal directories.