Documentation ¶
Overview ¶
Package reader is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSet = wire.NewSet( NewJSONReader, wire.Bind(new(Interface), new(*JSONReader)), )
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 ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.