tkValueObject

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IpAddressLocal = IpAddress("127.0.0.1")

Functions

This section is empty.

Types

type CidrBlock

type CidrBlock string

func NewCidrBlock

func NewCidrBlock(value any) (cidrBlock CidrBlock, err error)

func (CidrBlock) IsIpv4

func (vo CidrBlock) IsIpv4() bool

func (CidrBlock) IsIpv6

func (vo CidrBlock) IsIpv6() bool

func (CidrBlock) IsPrivate

func (vo CidrBlock) IsPrivate() bool

func (CidrBlock) IsPublic

func (vo CidrBlock) IsPublic() bool

func (CidrBlock) String

func (vo CidrBlock) String() string

type IpAddress

type IpAddress string

func NewIpAddress

func NewIpAddress(value any) (ipAddress IpAddress, err error)

func (IpAddress) IsIpv4

func (vo IpAddress) IsIpv4() bool

func (IpAddress) IsIpv6

func (vo IpAddress) IsIpv6() bool

func (IpAddress) IsLocal

func (vo IpAddress) IsLocal() bool

func (IpAddress) IsPrivate

func (vo IpAddress) IsPrivate() bool

func (IpAddress) IsPublic

func (vo IpAddress) IsPublic() bool

func (IpAddress) String

func (vo IpAddress) String() string

func (IpAddress) ToCidrBlock

func (vo IpAddress) ToCidrBlock() CidrBlock

type MailAddress

type MailAddress string

func NewMailAddress

func NewMailAddress(value any) (mailAddress MailAddress, err error)

func (MailAddress) String

func (vo MailAddress) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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