types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpDiscovery

type IpDiscovery string

Define constant string values for possible inputs of the user provided IpDiscovery

const (
	IpDiscoveryIPv4 IpDiscovery = "ipv4"
	IpDiscoveryIPv6 IpDiscovery = "ipv6"
)

func (IpDiscovery) IsValid

func (ipD IpDiscovery) IsValid() bool

IsValid represents a validation function on the user-inserted value for ipDiscovery Returns bool true if the value matches "ipv4", "ipv6" or empty string regardless the capitalization. False, otherwise.

func (IpDiscovery) String

func (ipD IpDiscovery) String() string

Jump to

Keyboard shortcuts

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