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.
Click to show internal directories.
Click to hide internal directories.