base

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryValidator

type DirectoryValidator struct {
	Field string
	Value string
	Fs    afero.Fs
}

func (*DirectoryValidator) IsValid

func (f *DirectoryValidator) IsValid(errors *validate.Errors)

type DurationValidator

type DurationValidator struct {
	Field     string
	Value     time.Duration
	AllowZero bool
}

func (*DurationValidator) IsValid

func (d *DurationValidator) IsValid(errors *validate.Errors)

type FileValidator

type FileValidator struct {
	Field string
	Value string
	Fs    afero.Fs
}

func (*FileValidator) IsValid

func (f *FileValidator) IsValid(errors *validate.Errors)

type HostValidator

type HostValidator struct {
	Field string
	Value string
}

func (*HostValidator) IsValid

func (h *HostValidator) IsValid(errors *validate.Errors)

type MethodValidator

type MethodValidator struct {
	Field      string
	Value      string
	AllowEmpty bool
}

func (*MethodValidator) IsValid

func (m *MethodValidator) IsValid(errors *validate.Errors)

type PathValidator

type PathValidator struct {
	Field string
	Value string
}

func (*PathValidator) IsValid

func (p *PathValidator) IsValid(errors *validate.Errors)

type PortValidator

type PortValidator struct {
	Field string
	Value int
}

func (*PortValidator) IsValid

func (p *PortValidator) IsValid(errors *validate.Errors)

type StatusValidator

type StatusValidator struct {
	Field string
	Value int
}

func (*StatusValidator) IsValid

func (s *StatusValidator) IsValid(errors *validate.Errors)

Jump to

Keyboard shortcuts

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