testing

package
v6.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublisherWithClient

func PublisherWithClient(client beat.Client) beat.Pipeline

Types

type ChanClient

type ChanClient struct {
	Channel chan beat.Event
	// contains filtered or unexported fields
}

given channel only.

func NewChanClient

func NewChanClient(bufSize int) *ChanClient

func NewChanClientWith

func NewChanClientWith(ch chan beat.Event) *ChanClient

func (*ChanClient) Close

func (c *ChanClient) Close() error

func (*ChanClient) Publish

func (c *ChanClient) Publish(event beat.Event)

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

func (*ChanClient) PublishAll

func (c *ChanClient) PublishAll(event []beat.Event)

func (*ChanClient) ReceiveEvent

func (c *ChanClient) ReceiveEvent() beat.Event

type TestPublisher

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

func (*TestPublisher) Connect

func (pub *TestPublisher) Connect() (beat.Client, error)

func (*TestPublisher) ConnectWith

func (pub *TestPublisher) ConnectWith(_ beat.ClientConfig) (beat.Client, error)

func (*TestPublisher) SetACKHandler

func (pub *TestPublisher) SetACKHandler(_ beat.PipelineACKHandler) error

Jump to

Keyboard shortcuts

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