validator

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStruct

func ValidateStruct(s interface{}) error

Types

type Ipv4List

type Ipv4List []string

type Subnet

type Subnet string

TODO(nikonov): probably it will be better to implement this type

as a complex struct with the UnmarshaText method.
This way we will have an ability to store IP and mask
separately, so perform operations on IPs/ranges in a more convenient way.

func (Subnet) Unwrap

func (s Subnet) Unwrap() *xnet.IPNet

type UrlList

type UrlList []string

Jump to

Keyboard shortcuts

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