Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HasTls = regexp.MustCompile("\\+tls")
View Source
var PlusEnd = regexp.MustCompile("\\+.+$")
Functions ¶
Types ¶
type ProtoAddress ¶
ProtoAddress is a combination of network type and address.
func MustParseAddress ¶
func MustParseAddress(addr string) ProtoAddress
MustParseAddress will parse the address and panic if it can't
func ParseAddress ¶
func ParseAddress(addr string) (*ProtoAddress, error)
ParseAddress does the reserse of ProtoAddress.String -- it will take a string and convert it an address.
func (*ProtoAddress) UnmarshalFlag ¶
func (pa *ProtoAddress) UnmarshalFlag(s string) error
func (*ProtoAddress) UnmarshalJSON ¶
func (pa *ProtoAddress) UnmarshalJSON(b []byte) error
type ProtoName ¶
type ProtoName struct {
Name string `` /* 130-byte string literal not displayed */
}
ProtoName defines the name so that we don't need to repeat it over and over again
type StandardIOAddress ¶ added in v2.1.0
type StandardIOAddress struct {
Address string
}
func (StandardIOAddress) Network ¶ added in v2.1.0
func (StandardIOAddress) Network() string
func (*StandardIOAddress) String ¶ added in v2.1.0
func (s *StandardIOAddress) String() string
Click to show internal directories.
Click to hide internal directories.