util

package
v0.0.0-...-68a4332 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldBlock

func ShouldBlock(actual interface{}, expected ...interface{}) string

func ShouldNotBlock

func ShouldNotBlock(actual interface{}, expected ...interface{}) string

Types

type ObserverGroup

type ObserverGroup struct {
	// contains filtered or unexported fields
}

func NewObserverGroup

func NewObserverGroup(logger logging.Logger) *ObserverGroup

func (*ObserverGroup) AddObserver

func (g *ObserverGroup) AddObserver() chan struct{}

func (*ObserverGroup) AddObserverWithTimeout

func (g *ObserverGroup) AddObserverWithTimeout(duration time.Duration) chan struct{}

func (*ObserverGroup) AttachObserver

func (g *ObserverGroup) AttachObserver(observer chan struct{})

func (*ObserverGroup) DetachObserver

func (g *ObserverGroup) DetachObserver(observer chan struct{}) bool

func (*ObserverGroup) Notify

func (g *ObserverGroup) Notify()

Jump to

Keyboard shortcuts

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