mocks

package
v0.0.0-...-690d12d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckerMock

type CheckerMock struct{}

func NewCheckerMock

func NewCheckerMock() *CheckerMock

func (*CheckerMock) IsAlive

func (c *CheckerMock) IsAlive() bool

type EmitterMock

type EmitterMock struct {
	Emitted bool
	// contains filtered or unexported fields
}

func NewEmitter

func NewEmitter() *EmitterMock

func (*EmitterMock) Close

func (e *EmitterMock) Close()

func (*EmitterMock) Emit

func (e *EmitterMock) Emit() chan *kafkabus.Message

type EventRepoMock

type EventRepoMock struct {
	Created  bool
	Found    bool
	ByUUID   bool
	ByName   bool
	ByStatus bool
}

func NewEventRepo

func NewEventRepo() *EventRepoMock

func (*EventRepoMock) Create

func (repo *EventRepoMock) Create(event *models.Event) (err error)

func (*EventRepoMock) Find

func (repo *EventRepoMock) Find(sc *models.Query) (events []models.Event, err error)

Jump to

Keyboard shortcuts

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