yarpctest

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2017 License: MIT Imports: 5 Imported by: 0

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

func (p *FakePeer) Identifier() string

Identifier returns the fake peer identifier.

func (*FakePeer) StartRequest added in v1.8.0

func (p *FakePeer) StartRequest()

StartRequest does nothing.

func (*FakePeer) Status added in v1.8.0

func (p *FakePeer) Status() peer.Status

Status returns the fake peer status.

type FakeTransport added in v1.8.0

type FakeTransport struct {
	transport.Lifecycle
}

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.

Directories

Path Synopsis
Package recorder records & replay yarpc requests on the client side.
Package recorder records & replay yarpc requests on the client side.

Jump to

Keyboard shortcuts

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