testing

package
v5.4.1 Latest Latest
Warning

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

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

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