buffered_async

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package buffered_async is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchResult

type FetchResult struct {
	FetchedMessage interface{}
	Err            errors.Error
}

type MockreaderHelper

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

MockreaderHelper is a mock of readerHelper interface.

func NewMockreaderHelper

func NewMockreaderHelper(ctrl *gomock.Controller) *MockreaderHelper

NewMockreaderHelper creates a new mock instance.

func (*MockreaderHelper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockreaderHelper) Read

func (m *MockreaderHelper) Read() (interface{}, errors.Error)

Read mocks base method.

type MockreaderHelperMockRecorder

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

MockreaderHelperMockRecorder is the mock recorder for MockreaderHelper.

func (*MockreaderHelperMockRecorder) Read

Read indicates an expected call of Read.

type Reader

type Reader interface {
	Start(readerFunc ReaderFunc) <-chan interface{}
	Stop()
}

type ReaderFunc

type ReaderFunc func() (interface{}, errors.Error)

type ReaderImpl

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

func NewReaderImpl

func NewReaderImpl(maxCacheSize int) *ReaderImpl

func (*ReaderImpl) Start

func (reader *ReaderImpl) Start(readerFunc ReaderFunc) <-chan FetchResult

func (*ReaderImpl) Stop

func (reader *ReaderImpl) Stop()

Jump to

Keyboard shortcuts

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