Documentation ¶
Overview ¶
Package validator is a generated GoMock package.
Index ¶
- type MockValidate
- func (m *MockValidate) EXPECT() *MockValidateMockRecorder
- func (m *MockValidate) RegisterStructValidation(fn StructLevelFunc, types ...interface{})
- func (m *MockValidate) RegisterValidation(tag string, fn v10.Func, callValidationEvenIfNull ...bool) error
- func (m *MockValidate) Struct(s interface{}) error
- type MockValidateMockRecorder
- func (mr *MockValidateMockRecorder) RegisterStructValidation(fn interface{}, types ...interface{}) *gomock.Call
- func (mr *MockValidateMockRecorder) RegisterValidation(tag, fn interface{}, callValidationEvenIfNull ...interface{}) *gomock.Call
- func (mr *MockValidateMockRecorder) Struct(s interface{}) *gomock.Call
- type StructLevelFunc
- type Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockValidate ¶
type MockValidate struct {
// contains filtered or unexported fields
}
MockValidate is a mock of Validate interface.
func NewMockValidate ¶
func NewMockValidate(ctrl *gomock.Controller) *MockValidate
NewMockValidate creates a new mock instance.
func (*MockValidate) EXPECT ¶
func (m *MockValidate) EXPECT() *MockValidateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidate) RegisterStructValidation ¶
func (m *MockValidate) RegisterStructValidation(fn StructLevelFunc, types ...interface{})
RegisterStructValidation mocks base method.
func (*MockValidate) RegisterValidation ¶
func (m *MockValidate) RegisterValidation(tag string, fn v10.Func, callValidationEvenIfNull ...bool) error
RegisterValidation mocks base method.
func (*MockValidate) Struct ¶
func (m *MockValidate) Struct(s interface{}) error
Struct mocks base method.
type MockValidateMockRecorder ¶
type MockValidateMockRecorder struct {
// contains filtered or unexported fields
}
MockValidateMockRecorder is the mock recorder for MockValidate.
func (*MockValidateMockRecorder) RegisterStructValidation ¶
func (mr *MockValidateMockRecorder) RegisterStructValidation(fn interface{}, types ...interface{}) *gomock.Call
RegisterStructValidation indicates an expected call of RegisterStructValidation.
func (*MockValidateMockRecorder) RegisterValidation ¶
func (mr *MockValidateMockRecorder) RegisterValidation(tag, fn interface{}, callValidationEvenIfNull ...interface{}) *gomock.Call
RegisterValidation indicates an expected call of RegisterValidation.
func (*MockValidateMockRecorder) Struct ¶
func (mr *MockValidateMockRecorder) Struct(s interface{}) *gomock.Call
Struct indicates an expected call of Struct.
type StructLevelFunc ¶
type StructLevelFunc validator.StructLevelFunc
type Validate ¶
type Validate interface { Struct(s interface{}) error RegisterValidation(tag string, fn validator.Func, callValidationEvenIfNull ...bool) error RegisterStructValidation(fn StructLevelFunc, types ...interface{}) }
func NewValidate ¶
func NewValidate() Validate
Click to show internal directories.
Click to hide internal directories.