fakes

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHandler

type FakeHandler struct {
	RunFunc     boshhandler.Func
	RunCallBack func()
	RunErr      error

	ReceivedRun   bool
	ReceivedStart bool
	ReceivedStop  bool

	RegisteredAdditionalFunc boshhandler.Func

	SendCallback func(SendInput)
	SendErr      error
	// contains filtered or unexported fields
}

func NewFakeHandler

func NewFakeHandler() *FakeHandler

func (*FakeHandler) KeepOnRunning

func (h *FakeHandler) KeepOnRunning()

func (*FakeHandler) RegisterAdditionalFunc

func (h *FakeHandler) RegisterAdditionalFunc(handlerFunc boshhandler.Func)

func (*FakeHandler) Run

func (h *FakeHandler) Run(handlerFunc boshhandler.Func) error

func (*FakeHandler) Send

func (h *FakeHandler) Send(target boshhandler.Target, topic boshhandler.Topic, message interface{}) error

func (*FakeHandler) SendInputs

func (h *FakeHandler) SendInputs() []SendInput

func (*FakeHandler) Start

func (h *FakeHandler) Start(handlerFunc boshhandler.Func) error

func (*FakeHandler) Stop

func (h *FakeHandler) Stop()

type SendInput

type SendInput struct {
	Target  boshhandler.Target
	Topic   boshhandler.Topic
	Message interface{}
}

Jump to

Keyboard shortcuts

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