validator

package
v0.0.0-...-d2182b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package validator is a generated GoMock package.

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL