Documentation ¶
Overview ¶
Package mocks messages mocks.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance
func (*MockRepository) Create ¶
func (m *MockRepository) Create(ctx context.Context, input message.CreateInput) (*models.Message, error)
Create mocks base method
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRepository) GetByID ¶
func (m *MockRepository) GetByID(ctx context.Context, input message.GetByIDInput) (*models.Message, error)
GetByID mocks base method
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, input interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockRepositoryMockRecorder) GetByID ¶
func (mr *MockRepositoryMockRecorder) GetByID(ctx, input interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
type MockSerializer ¶
type MockSerializer struct {
// contains filtered or unexported fields
}
MockSerializer is a mock of Serializer interface
func NewMockSerializer ¶
func NewMockSerializer(ctrl *gomock.Controller) *MockSerializer
NewMockSerializer creates a new mock instance
func (*MockSerializer) EXPECT ¶
func (m *MockSerializer) EXPECT() *MockSerializerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSerializer) ToMessage ¶
func (m *MockSerializer) ToMessage(arg0 *models.Message) *gcloud_grpc_boilerplate.Message
ToMessage mocks base method
func (*MockSerializer) ToMessages ¶
func (m *MockSerializer) ToMessages(arg0 []*models.Message) []*gcloud_grpc_boilerplate.Message
ToMessages mocks base method
type MockSerializerMockRecorder ¶
type MockSerializerMockRecorder struct {
// contains filtered or unexported fields
}
MockSerializerMockRecorder is the mock recorder for MockSerializer
func (*MockSerializerMockRecorder) ToMessage ¶
func (mr *MockSerializerMockRecorder) ToMessage(arg0 interface{}) *gomock.Call
ToMessage indicates an expected call of ToMessage
func (*MockSerializerMockRecorder) ToMessages ¶
func (mr *MockSerializerMockRecorder) ToMessages(arg0 interface{}) *gomock.Call
ToMessages indicates an expected call of ToMessages
type MockValidator ¶
type MockValidator struct {
// contains filtered or unexported fields
}
MockValidator is a mock of Validator interface
func NewMockValidator ¶
func NewMockValidator(ctrl *gomock.Controller) *MockValidator
NewMockValidator creates a new mock instance
func (*MockValidator) EXPECT ¶
func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockValidator) ValidateCreate ¶
func (m *MockValidator) ValidateCreate(arg0 *gcloud_grpc_boilerplate.CreateRequest) (message.CreateInput, error)
ValidateCreate mocks base method
func (*MockValidator) ValidateGetByID ¶
func (m *MockValidator) ValidateGetByID(arg0 *gcloud_grpc_boilerplate.GetByIDRequest) (message.GetByIDInput, error)
ValidateGetByID mocks base method
type MockValidatorMockRecorder ¶
type MockValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorMockRecorder is the mock recorder for MockValidator
func (*MockValidatorMockRecorder) ValidateCreate ¶
func (mr *MockValidatorMockRecorder) ValidateCreate(arg0 interface{}) *gomock.Call
ValidateCreate indicates an expected call of ValidateCreate
func (*MockValidatorMockRecorder) ValidateGetByID ¶
func (mr *MockValidatorMockRecorder) ValidateGetByID(arg0 interface{}) *gomock.Call
ValidateGetByID indicates an expected call of ValidateGetByID