validator

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator[T migrator.Entity] struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator[T migrator.Entity](base *gorm.DB, target *gorm.DB, l logger.Logger,
	producer events.Producer, direction string) *Validator[T]

func (*Validator[T]) SleepInterval

func (v *Validator[T]) SleepInterval(i time.Duration) *Validator[T]

func (*Validator[T]) Utime

func (v *Validator[T]) Utime(utime int64) *Validator[T]

func (*Validator[T]) Validate

func (v *Validator[T]) Validate(ctx context.Context) error

Validate 调用者可以通过 ctx 来控制校验程序退出

Jump to

Keyboard shortcuts

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