validators

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

func ValidateConfig

func ValidateConfig(config *config.UncorsConfig, fs afero.Fs) error

Types

type CacheConfigValidator

type CacheConfigValidator struct {
	Field string
	Value config.CacheConfig
}

func (*CacheConfigValidator) IsValid

func (c *CacheConfigValidator) IsValid(errors *validate.Errors)

type CacheValidator

type CacheValidator struct {
	Field string
	Value string
}

func (*CacheValidator) IsValid

func (c *CacheValidator) IsValid(errors *validate.Errors)

type MappingValidator

type MappingValidator struct {
	Field string
	Value config.Mapping
	Fs    afero.Fs
}

func (*MappingValidator) IsValid

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

type MockValidator

type MockValidator struct {
	Field string
	Value config.Mock
	Fs    afero.Fs
}

func (*MockValidator) IsValid

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

type ProxyValidator

type ProxyValidator struct {
	Field string
	Value string
}

func (*ProxyValidator) IsValid

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

type ResponseValidator

type ResponseValidator struct {
	Field string
	Value config.Response
	Fs    afero.Fs
}

func (*ResponseValidator) IsValid

func (r *ResponseValidator) IsValid(errors *validate.Errors)

type StaticValidator

type StaticValidator struct {
	Field string
	Value config.StaticDirectory
	Fs    afero.Fs
}

func (*StaticValidator) IsValid

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

type UncorsConfigValidator

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

func (*UncorsConfigValidator) IsValid

func (u *UncorsConfigValidator) IsValid(errors *validate.Errors)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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