validation

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QualifiedNameMaxLength = 63
	QualifiedNameErrMsg    = "must consist of alphanumeric characters, " +
		"'-', '_' or '.', and must start and end with an alphanumeric character"
)

Constants obtained from https://github.com/kubernetes/apimachinery/blob/master/pkg/util/validation/validation.go

Variables

This section is empty.

Functions

func ContainsIllegalCharacter added in v0.15.0

func ContainsIllegalCharacter(s string) bool

ContainsIllegalCharacter check if a message contains illegal characters in Minecraft chat.

It is not possible to send certain characters in the chat like: section symbol, DEL, and all characters below space.

func IsAllowedCharacter added in v0.15.0

func IsAllowedCharacter(c rune) bool

IsAllowedCharacter checks if c is a allowed character in Minecraft chat.

func ValidHostPort

func ValidHostPort(hostAndPort string) error

func ValidServerName

func ValidServerName(str string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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