Struct Domain
Thin wrapper around a string, used for domain name serialization
struct Domain
;
Fields
Name | Type | Description |
---|---|---|
value
|
const(char)[] | The domain name |
Methods
Name | Description |
---|---|
byLabel
()
|
|
checkLabel
(label)
|
Verify that a label only contains allowed character |
fromBinary
(ctx)
|
Support for network deserialization |
fromSafeString
(v)
|
Construct an instance of a Domain from a previously validated string
|
fromString
(v)
|
Construct an instance of a Domain from user input
|
serialize
(dg)
|
Support for network deserialization |
serviceAndProtocolLabels
()
|
Get service and protocol labels |
toString
()
|
Aliases
Name | Description |
---|---|
ServiceProtoTuple
|
Tuple for service and protocol labels |