reader

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package reader is a generated GoMock package.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Read(dataType string, req Request) (JSONResponse, error)
}

type JSONReader

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

func NewJSONReader

func NewJSONReader(baseDir string, logger *log.Logger) *JSONReader

func (*JSONReader) Read

func (r *JSONReader) Read(dataType string, req Request) (JSONResponse, error)

type JSONResponse

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

JSONResponse represents JSON response unmarshalled in bytes.

func NewJSONResponse

func NewJSONResponse(data []byte) JSONResponse

func (JSONResponse) Data

func (r JSONResponse) Data() []byte

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) EXPECT

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

func (*MockInterface) Read

func (m *MockInterface) Read(dataType string, req Request) (JSONResponse, error)

Read mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Read

func (mr *MockInterfaceMockRecorder) Read(dataType, req any) *gomock.Call

Read indicates an expected call of Read.

type Request

type Request map[string]any

Request represents a map of values in JSON format that will be sent to request data.

Jump to

Keyboard shortcuts

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