validations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package validations contains validation functions for ent fields

Package validations contains validation functions for ent fields

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIPAddress = errors.New("invalid ip address")

ErrInvalidIPAddress is returned when the given string is not a valid IP address

View Source
var ErrRestrictedPort = errors.New("port number restricted")

ErrRestrictedPort is returned when the given port is restricted

Functions

func IPAddress

func IPAddress(ip string) error

IPAddress validates if the given string is a valid IP address

func RestrictedPorts added in v0.0.26

func RestrictedPorts(port int) error

RestrictedPorts validates if the given port is restricted

Types

This section is empty.

Jump to

Keyboard shortcuts

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