Documentation
¶
Index ¶
- type Factory
- type Writer
- func (_m *Writer) SetLogger(logger *zap.Logger)
- func (_m *Writer) WriteError(ctx context.Context, msg string, cause error, opts ...fxrf.ResponseBuildOption) error
- func (_m *Writer) WriteFail(ctx context.Context, data interface{}, opts ...fxrf.ResponseBuildOption) error
- func (_m *Writer) WriteSuccess(ctx context.Context, payload interface{}, opts ...fxrf.ResponseBuildOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory is an autogenerated mock type for the Factory type
func NewFactory ¶
NewFactory creates a new instance of Factory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Writer ¶
Writer is an autogenerated mock type for the Writer type
func NewWriter ¶
NewWriter creates a new instance of Writer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Writer) WriteError ¶
func (_m *Writer) WriteError(ctx context.Context, msg string, cause error, opts ...fxrf.ResponseBuildOption) error
WriteError provides a mock function with given fields: ctx, msg, cause, opts
func (*Writer) WriteFail ¶
func (_m *Writer) WriteFail(ctx context.Context, data interface{}, opts ...fxrf.ResponseBuildOption) error
WriteFail provides a mock function with given fields: ctx, data, opts
func (*Writer) WriteSuccess ¶
func (_m *Writer) WriteSuccess(ctx context.Context, payload interface{}, opts ...fxrf.ResponseBuildOption) error
WriteSuccess provides a mock function with given fields: ctx, payload, opts