Back to godoc.org
github.com/goodrain/rainbond / util / endpoint

package validation

v5.2.0-release+incompatible (release)
Latest Go to latest
Published: Apr 16, 2020 | License: LGPL-3.0 | Module: github.com/goodrain/rainbond

Index

func IsDomainNotIP

func IsDomainNotIP(address string) bool

IsDomainNotIP check address is domain but not is ip

func SplitEndpointAddress

func SplitEndpointAddress(resourceAddress string) (address string)

SplitEndpointAddress split URL to domain or IP

func ValidateDomain

func ValidateDomain(domain string) []string

ValidateDomain tests that the argument is a valid domain.

func ValidateEndpointAddress

func ValidateEndpointAddress(address string) []string

ValidateEndpointAddress tests that the argument is a valid endpoint address.

func ValidateEndpointIP

func ValidateEndpointIP(ipAddress string) []string

ValidateEndpointIP tests that the argument is a valid IP address.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier