mock

package
v5.0.4-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStreamer

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

func NewMockStreamer

func NewMockStreamer(logs [][]byte) *MockStreamer

NewMockStreamer creates a new instance of MockStreamer. It's useful to set up the default state for the mock, like initializing the feed.

func (*MockStreamer) GetLastFewLogs

func (m *MockStreamer) GetLastFewLogs() [][]byte

GetLastFewLogs returns the predefined logs.

func (*MockStreamer) LogsFeed

func (m *MockStreamer) LogsFeed() *event.Feed

LogsFeed returns the predefined event feed.

Jump to

Keyboard shortcuts

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