rapidgen

package
v0.0.0-...-d02ee6a Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Domain

func Domain() *rapid.Generator[string]

Domain generates an RFC 1035 compliant domain name.

func DomainOf

func DomainOf(maxLength, maxElementLength int, domainSuffix string, dontMatch []string) *rapid.Generator[string]

DomainOf generates an RFC 1035 compliant domain name, with a maximum overall length of maxLength a maximum number of elements of maxElements and the specified domain suffix (assumes compliant).

func DomainWithPort

func DomainWithPort() *rapid.Generator[string]

DomainWithPort generates an RFC 1035 compliant domain name with a port.

func DomainWithSuffixAndPort

func DomainWithSuffixAndPort(suffix string, dontMatch []string) *rapid.Generator[string]

DomainWithSuffixAndPort generates an RFC 1035 compliant domain name with the specified domain suffix (assumes compliant), taking a list of domains to not match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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