fake

package
v0.0.0-...-e951c9a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.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 Client

type Client struct {
	OnStop func()
	// contains filtered or unexported fields
}

Client is a fake client used for testing.

func New

func New(stop func()) *Client

func (*Client) Chan

func (c *Client) Chan() chan<- api.Entry

func (*Client) Clear

func (c *Client) Clear()

Clear is used to cleanup the buffered received entries, so the same client can be re-used between test cases.

func (*Client) Name

func (c *Client) Name() string

func (*Client) Received

func (c *Client) Received() []api.Entry

func (*Client) Stop

func (c *Client) Stop()

Stop implements client.Client

func (*Client) StopNow

func (c *Client) StopNow()

StopNow implements client.Client

Jump to

Keyboard shortcuts

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