testing

package
v5.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublisherWithClient

func PublisherWithClient(client publisher.Client) publisher.Publisher

Types

type ChanClient

type ChanClient struct {
	Channel chan PublishMessage
	// contains filtered or unexported fields
}

given channel only.

func NewChanClient

func NewChanClient(bufSize int) *ChanClient

func NewChanClientWith

func NewChanClientWith(ch chan PublishMessage) *ChanClient

func (*ChanClient) Close

func (c *ChanClient) Close() error

func (*ChanClient) PublishEvent

func (c *ChanClient) PublishEvent(event common.MapStr, opts ...publisher.ClientOption) bool

PublishEvent will publish the event on the channel. Options will be ignored. Always returns true.

func (*ChanClient) PublishEvents

func (c *ChanClient) PublishEvents(events []common.MapStr, opts ...publisher.ClientOption) bool

PublishEvents publishes all event on the configured channel. Options will be ignored. Always returns true.

func (*ChanClient) ReceiveEvent

func (c *ChanClient) ReceiveEvent() common.MapStr

func (*ChanClient) ReceiveEvents

func (c *ChanClient) ReceiveEvents() []common.MapStr

type PublishMessage

type PublishMessage struct {
	Context publisher.Context
	Events  []common.MapStr
}

type TestPublisher

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

func (*TestPublisher) Connect

func (pub *TestPublisher) Connect() publisher.Client

Jump to

Keyboard shortcuts

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