datafetcher

package
v1.200.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package datafetcher is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var ErrAtmosSchemaNotFound = errors.New("atmos schema not found")

Sentinel error for quick checks.

View Source
var ErrUnsupportedSource = errors.New("unsupported source type")

Functions

func NewDataFetcher

func NewDataFetcher(atmosConfig *schema.AtmosConfiguration) *dataFetcher

NewDataFetcher creates a new dataFetcher instance.

Types

type DataFetcher

type DataFetcher interface {
	GetData(source string) ([]byte, error)
}

type Fetcher

type Fetcher interface {
	FetchData(source string) ([]byte, error)
}

Fetcher is an interface for fetching data from various sources.

type MockDataFetcher

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

MockDataFetcher is a mock of DataFetcher interface.

func NewMockDataFetcher

func NewMockDataFetcher(ctrl *gomock.Controller) *MockDataFetcher

NewMockDataFetcher creates a new mock instance.

func (*MockDataFetcher) EXPECT

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

func (*MockDataFetcher) GetData

func (m *MockDataFetcher) GetData(source string) ([]byte, error)

GetData mocks base method.

type MockDataFetcherMockRecorder

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

MockDataFetcherMockRecorder is the mock recorder for MockDataFetcher.

func (*MockDataFetcherMockRecorder) GetData

func (mr *MockDataFetcherMockRecorder) GetData(source any) *gomock.Call

GetData indicates an expected call of GetData.

type MockFetcher

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

MockFetcher is a mock of Fetcher interface.

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance.

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

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

func (*MockFetcher) FetchData

func (m *MockFetcher) FetchData(source string) ([]byte, error)

FetchData mocks base method.

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher.

func (*MockFetcherMockRecorder) FetchData

func (mr *MockFetcherMockRecorder) FetchData(source any) *gomock.Call

FetchData indicates an expected call of FetchData.

Jump to

Keyboard shortcuts

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