rule

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInput

type FileInput struct {
	Attribute string
	Source    contracts.InputSource
}

func (FileInput) Passes

func (f FileInput) Passes(input contracts.InputValue) (success bool, skipAll bool)

type Messager

type Messager interface {
	Message() string
}

type NullableInput

type NullableInput struct {
}

func (NullableInput) Passes

func (ni NullableInput) Passes(input contracts.InputValue) (success bool, skipAll bool)

type NumberType

type NumberType string
const (
	TypeInterger NumberType = "integer"
	TypeFloat    NumberType = "float"
)

type NumericInput

type NumericInput struct {
	// contains filtered or unexported fields
}

func (NumericInput) Passes

func (ni NumericInput) Passes(input contracts.InputValue) (success bool, skipAll bool)

type Required

type Required struct {
	Attribute string
	Source    contracts.InputSource
}

func (Required) Passes

func (r Required) Passes(input contracts.InputValue) (success bool, skipAll bool)

type Rule

type Rule interface {
	Passes(input contracts.InputValue) (success bool, skipAll bool)
}

Jump to

Keyboard shortcuts

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