Documentation
¶
Overview ¶
Package mold is a generated GoMock package.
Package mold is a generated GoMock package.
Index ¶
- type CreateError
- type CreateInteractor
- type CreateOutputPort
- type CreateRequest
- type CreateResponse
- type MockCreateOutputPort
- type MockCreateOutputPortMockRecorder
- type MockPourOutputPort
- type MockPourOutputPortMockRecorder
- type PourError
- type PourInteractor
- type PourOutputPort
- type PourRequest
- type PourResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateError ¶
type CreateError struct { Req *CreateRequest Err error }
type CreateInteractor ¶
type CreateInteractor struct {
// contains filtered or unexported fields
}
func NewCreateInteractor ¶
func NewCreateInteractor(repo mold.Repository, service mold.Service, presenter CreateOutputPort) *CreateInteractor
func (*CreateInteractor) ExecuteCreate ¶
func (r *CreateInteractor) ExecuteCreate(req *CreateRequest)
type CreateOutputPort ¶
type CreateOutputPort interface { RenderCreateResponse(r *CreateResponse) RenderCreateError(e *CreateError) }
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct {
MoldName string
}
type MockCreateOutputPort ¶
type MockCreateOutputPort struct {
// contains filtered or unexported fields
}
MockCreateOutputPort is a mock of CreateOutputPort interface
func NewMockCreateOutputPort ¶
func NewMockCreateOutputPort(ctrl *gomock.Controller) *MockCreateOutputPort
NewMockCreateOutputPort creates a new mock instance
func (*MockCreateOutputPort) EXPECT ¶
func (m *MockCreateOutputPort) EXPECT() *MockCreateOutputPortMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCreateOutputPort) RenderCreateError ¶
func (m *MockCreateOutputPort) RenderCreateError(e *CreateError)
RenderCreateError mocks base method
func (*MockCreateOutputPort) RenderCreateResponse ¶
func (m *MockCreateOutputPort) RenderCreateResponse(r *CreateResponse)
RenderCreateResponse mocks base method
type MockCreateOutputPortMockRecorder ¶
type MockCreateOutputPortMockRecorder struct {
// contains filtered or unexported fields
}
MockCreateOutputPortMockRecorder is the mock recorder for MockCreateOutputPort
func (*MockCreateOutputPortMockRecorder) RenderCreateError ¶
func (mr *MockCreateOutputPortMockRecorder) RenderCreateError(e interface{}) *gomock.Call
RenderCreateError indicates an expected call of RenderCreateError
func (*MockCreateOutputPortMockRecorder) RenderCreateResponse ¶
func (mr *MockCreateOutputPortMockRecorder) RenderCreateResponse(r interface{}) *gomock.Call
RenderCreateResponse indicates an expected call of RenderCreateResponse
type MockPourOutputPort ¶
type MockPourOutputPort struct {
// contains filtered or unexported fields
}
MockPourOutputPort is a mock of PourOutputPort interface
func NewMockPourOutputPort ¶
func NewMockPourOutputPort(ctrl *gomock.Controller) *MockPourOutputPort
NewMockPourOutputPort creates a new mock instance
func (*MockPourOutputPort) EXPECT ¶
func (m *MockPourOutputPort) EXPECT() *MockPourOutputPortMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPourOutputPort) RenderPourError ¶
func (m *MockPourOutputPort) RenderPourError(e *PourError)
RenderPourError mocks base method
func (*MockPourOutputPort) RenderPourResponse ¶
func (m *MockPourOutputPort) RenderPourResponse(r *PourResponse)
RenderPourResponse mocks base method
type MockPourOutputPortMockRecorder ¶
type MockPourOutputPortMockRecorder struct {
// contains filtered or unexported fields
}
MockPourOutputPortMockRecorder is the mock recorder for MockPourOutputPort
func (*MockPourOutputPortMockRecorder) RenderPourError ¶
func (mr *MockPourOutputPortMockRecorder) RenderPourError(e interface{}) *gomock.Call
RenderPourError indicates an expected call of RenderPourError
func (*MockPourOutputPortMockRecorder) RenderPourResponse ¶
func (mr *MockPourOutputPortMockRecorder) RenderPourResponse(r interface{}) *gomock.Call
RenderPourResponse indicates an expected call of RenderPourResponse
type PourError ¶
type PourError struct { Req *PourRequest Err error }
type PourInteractor ¶
type PourInteractor struct {
// contains filtered or unexported fields
}
func NewPourInteractor ¶
func NewPourInteractor(repo mold.Repository, materialService mold.MaterialService, productService mold.ProductService, output PourOutputPort) *PourInteractor
func (*PourInteractor) ExecutePour ¶
func (r *PourInteractor) ExecutePour(req *PourRequest)
type PourOutputPort ¶
type PourOutputPort interface { RenderPourResponse(r *PourResponse) RenderPourError(e *PourError) }
type PourRequest ¶
type PourResponse ¶
type PourResponse struct {
MoldName string
}