Documentation ¶
Index ¶
- type CompleteFormService
- func (_m *CompleteFormService) Decode(ctx context.Context, req *web.Request, values url.Values, formData interface{}) (interface{}, error)
- func (_m *CompleteFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)
- func (_m *CompleteFormService) Validate(ctx context.Context, req *web.Request, ...) (*domain.ValidationInfo, error)
- type DefaultFormDataDecoder
- type DefaultFormDataProvider
- type DefaultFormDataValidator
- type FieldError
- func (_m *FieldError) ActualTag() string
- func (_m *FieldError) Field() string
- func (_m *FieldError) Kind() reflect.Kind
- func (_m *FieldError) Namespace() string
- func (_m *FieldError) Param() string
- func (_m *FieldError) StructField() string
- func (_m *FieldError) StructNamespace() string
- func (_m *FieldError) Tag() string
- func (_m *FieldError) Translate(_a0 ut.Translator) string
- func (_m *FieldError) Type() reflect.Type
- func (_m *FieldError) Value() interface{}
- type FieldLevel
- func (_m *FieldLevel) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool)
- func (_m *FieldLevel) Field() reflect.Value
- func (_m *FieldLevel) FieldName() string
- func (_m *FieldLevel) GetStructFieldOK() (reflect.Value, reflect.Kind, bool)
- func (_m *FieldLevel) Param() string
- func (_m *FieldLevel) Parent() reflect.Value
- func (_m *FieldLevel) StructFieldName() string
- func (_m *FieldLevel) Top() reflect.Value
- type FieldValidator
- type FormDataDecoder
- type FormDataProvider
- type FormDataValidator
- type FormExtension
- type FormHandler
- func (_m *FormHandler) HandleForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- func (_m *FormHandler) HandleSubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- func (_m *FormHandler) HandleSubmittedGETForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- func (_m *FormHandler) HandleUnsubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- type FormService
- type NamedFormInstance
- type StructLevel
- func (_m *StructLevel) Current() reflect.Value
- func (_m *StructLevel) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool)
- func (_m *StructLevel) Parent() reflect.Value
- func (_m *StructLevel) ReportError(field interface{}, fieldName string, structFieldName string, tag string, ...)
- func (_m *StructLevel) ReportValidationErrors(relativeNamespace string, relativeActualNamespace string, ...)
- func (_m *StructLevel) Top() reflect.Value
- func (_m *StructLevel) Validator() *validator.Validate
- type StructValidator
- type ValidatorProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompleteFormService ¶
CompleteFormService is an autogenerated mock type for the CompleteFormService type
func (*CompleteFormService) Decode ¶
func (_m *CompleteFormService) Decode(ctx context.Context, req *web.Request, values url.Values, formData interface{}) (interface{}, error)
Decode provides a mock function with given fields: ctx, req, values, formData
func (*CompleteFormService) GetFormData ¶
func (_m *CompleteFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)
GetFormData provides a mock function with given fields: ctx, req
func (*CompleteFormService) Validate ¶
func (_m *CompleteFormService) Validate(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{}) (*domain.ValidationInfo, error)
Validate provides a mock function with given fields: ctx, req, validatorProvider, formData
type DefaultFormDataDecoder ¶
DefaultFormDataDecoder is an autogenerated mock type for the DefaultFormDataDecoder type
type DefaultFormDataProvider ¶
DefaultFormDataProvider is an autogenerated mock type for the DefaultFormDataProvider type
func (*DefaultFormDataProvider) GetFormData ¶
func (_m *DefaultFormDataProvider) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)
GetFormData provides a mock function with given fields: ctx, req
type DefaultFormDataValidator ¶
DefaultFormDataValidator is an autogenerated mock type for the DefaultFormDataValidator type
func (*DefaultFormDataValidator) Validate ¶
func (_m *DefaultFormDataValidator) Validate(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{}) (*domain.ValidationInfo, error)
Validate provides a mock function with given fields: ctx, req, validatorProvider, formData
type FieldError ¶
FieldError is an autogenerated mock type for the FieldError type
func (*FieldError) ActualTag ¶
func (_m *FieldError) ActualTag() string
ActualTag provides a mock function with given fields:
func (*FieldError) Field ¶
func (_m *FieldError) Field() string
Field provides a mock function with given fields:
func (*FieldError) Kind ¶
func (_m *FieldError) Kind() reflect.Kind
Kind provides a mock function with given fields:
func (*FieldError) Namespace ¶
func (_m *FieldError) Namespace() string
Namespace provides a mock function with given fields:
func (*FieldError) Param ¶
func (_m *FieldError) Param() string
Param provides a mock function with given fields:
func (*FieldError) StructField ¶
func (_m *FieldError) StructField() string
StructField provides a mock function with given fields:
func (*FieldError) StructNamespace ¶
func (_m *FieldError) StructNamespace() string
StructNamespace provides a mock function with given fields:
func (*FieldError) Tag ¶
func (_m *FieldError) Tag() string
Tag provides a mock function with given fields:
func (*FieldError) Translate ¶
func (_m *FieldError) Translate(_a0 ut.Translator) string
Translate provides a mock function with given fields: _a0
func (*FieldError) Type ¶
func (_m *FieldError) Type() reflect.Type
Type provides a mock function with given fields:
func (*FieldError) Value ¶
func (_m *FieldError) Value() interface{}
Value provides a mock function with given fields:
type FieldLevel ¶
FieldLevel is an autogenerated mock type for the FieldLevel type
func (*FieldLevel) ExtractType ¶
ExtractType provides a mock function with given fields: field
func (*FieldLevel) Field ¶
func (_m *FieldLevel) Field() reflect.Value
Field provides a mock function with given fields:
func (*FieldLevel) FieldName ¶
func (_m *FieldLevel) FieldName() string
FieldName provides a mock function with given fields:
func (*FieldLevel) GetStructFieldOK ¶
GetStructFieldOK provides a mock function with given fields:
func (*FieldLevel) Param ¶
func (_m *FieldLevel) Param() string
Param provides a mock function with given fields:
func (*FieldLevel) Parent ¶
func (_m *FieldLevel) Parent() reflect.Value
Parent provides a mock function with given fields:
func (*FieldLevel) StructFieldName ¶
func (_m *FieldLevel) StructFieldName() string
StructFieldName provides a mock function with given fields:
func (*FieldLevel) Top ¶
func (_m *FieldLevel) Top() reflect.Value
Top provides a mock function with given fields:
type FieldValidator ¶
FieldValidator is an autogenerated mock type for the FieldValidator type
func (*FieldValidator) ValidateField ¶
func (_m *FieldValidator) ValidateField(ctx context.Context, fl validator.FieldLevel) bool
ValidateField provides a mock function with given fields: ctx, fl
func (*FieldValidator) ValidatorName ¶
func (_m *FieldValidator) ValidatorName() string
ValidatorName provides a mock function with given fields:
type FormDataDecoder ¶
FormDataDecoder is an autogenerated mock type for the FormDataDecoder type
type FormDataProvider ¶
FormDataProvider is an autogenerated mock type for the FormDataProvider type
func (*FormDataProvider) GetFormData ¶
GetFormData provides a mock function with given fields: ctx, req
type FormDataValidator ¶
FormDataValidator is an autogenerated mock type for the FormDataValidator type
func (*FormDataValidator) Validate ¶
func (_m *FormDataValidator) Validate(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{}) (*domain.ValidationInfo, error)
Validate provides a mock function with given fields: ctx, req, validatorProvider, formData
type FormExtension ¶
FormExtension is an autogenerated mock type for the FormExtension type
type FormHandler ¶
FormHandler is an autogenerated mock type for the FormHandler type
func (*FormHandler) HandleForm ¶
HandleForm provides a mock function with given fields: ctx, req
func (*FormHandler) HandleSubmittedForm ¶
func (_m *FormHandler) HandleSubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
HandleSubmittedForm provides a mock function with given fields: ctx, req
func (*FormHandler) HandleSubmittedGETForm ¶
func (_m *FormHandler) HandleSubmittedGETForm(ctx context.Context, req *web.Request) (*domain.Form, error)
HandleSubmittedGETForm provides a mock function with given fields: ctx, req
func (*FormHandler) HandleUnsubmittedForm ¶
func (_m *FormHandler) HandleUnsubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
HandleUnsubmittedForm provides a mock function with given fields: ctx, req
type FormService ¶
FormService is an autogenerated mock type for the FormService type
type NamedFormInstance ¶
NamedFormInstance is an autogenerated mock type for the NamedFormInstance type
func (*NamedFormInstance) Name ¶
func (_m *NamedFormInstance) Name() string
Name provides a mock function with given fields:
type StructLevel ¶
StructLevel is an autogenerated mock type for the StructLevel type
func (*StructLevel) Current ¶
func (_m *StructLevel) Current() reflect.Value
Current provides a mock function with given fields:
func (*StructLevel) ExtractType ¶
ExtractType provides a mock function with given fields: field
func (*StructLevel) Parent ¶
func (_m *StructLevel) Parent() reflect.Value
Parent provides a mock function with given fields:
func (*StructLevel) ReportError ¶
func (_m *StructLevel) ReportError(field interface{}, fieldName string, structFieldName string, tag string, param string)
ReportError provides a mock function with given fields: field, fieldName, structFieldName, tag, param
func (*StructLevel) ReportValidationErrors ¶
func (_m *StructLevel) ReportValidationErrors(relativeNamespace string, relativeActualNamespace string, errs validator.ValidationErrors)
ReportValidationErrors provides a mock function with given fields: relativeNamespace, relativeActualNamespace, errs
func (*StructLevel) Top ¶
func (_m *StructLevel) Top() reflect.Value
Top provides a mock function with given fields:
func (*StructLevel) Validator ¶
func (_m *StructLevel) Validator() *validator.Validate
Validator provides a mock function with given fields:
type StructValidator ¶
StructValidator is an autogenerated mock type for the StructValidator type
func (*StructValidator) StructType ¶
func (_m *StructValidator) StructType() interface{}
StructType provides a mock function with given fields:
func (*StructValidator) ValidateStruct ¶
func (_m *StructValidator) ValidateStruct(ctx context.Context, sl validator.StructLevel)
ValidateStruct provides a mock function with given fields: ctx, sl
type ValidatorProvider ¶
ValidatorProvider is an autogenerated mock type for the ValidatorProvider type
func (*ValidatorProvider) ErrorsToValidationInfo ¶
func (_m *ValidatorProvider) ErrorsToValidationInfo(err error) domain.ValidationInfo
ErrorsToValidationInfo provides a mock function with given fields: err
func (*ValidatorProvider) GetValidator ¶
func (_m *ValidatorProvider) GetValidator() *validator.Validate
GetValidator provides a mock function with given fields:
func (*ValidatorProvider) Validate ¶
func (_m *ValidatorProvider) Validate(ctx context.Context, req *web.Request, value interface{}) domain.ValidationInfo
Validate provides a mock function with given fields: ctx, req, value
Source Files ¶
- complete_form_service.go
- default_form_data_decoder.go
- default_form_data_provider.go
- default_form_data_validator.go
- field_error.go
- field_level.go
- field_validator.go
- form_data_decoder.go
- form_data_provider.go
- form_data_validator.go
- form_extension.go
- form_handler.go
- form_service.go
- named_form_instance.go
- struct_level.go
- struct_validator.go
- validator_provider.go