test

package
v0.0.0-...-f44339b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EP

type EP struct {
	InQ, OutQ chan interface{}
	DoneQ     chan struct{}
}

EP is a mock endpoint

func NewEP

func NewEP() *EP

NewEP returns a mock portal.Endpoint

func (EP) Close

func (m EP) Close()

Close the Endpoint

func (EP) Done

func (m EP) Done() <-chan struct{}

Done indicates the Endpoint is closed

func (EP) Inbox

func (m EP) Inbox() <-chan interface{}

Inbox is a queue of messages received

func (EP) Outbox

func (m EP) Outbox() chan<- interface{}

Outbox is a queue of messages sent

Jump to

Keyboard shortcuts

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