fake

package
v0.0.0-...-360277a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.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) 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