base

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	Relative bool
}

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)

type StringEnumValidator added in v0.3.0

type StringEnumValidator struct {
	Field   string
	Value   string
	Options []string
}

func (*StringEnumValidator) IsValid added in v0.3.0

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

Jump to

Keyboard shortcuts

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