Documentation ¶
Index ¶
- Variables
- func AsListener[C gonet.Conn](accept func() (C, error), close func() error, addr func() string) (gonet.Listener, error)
- func ConnectToNamedPipe(ctx context.Context, path string) (gonet.Conn, error)
- func NewNamedPipeId() (string, error)
- func NotifyClosed(conn gonet.Conn, onClosed func(), onUnexpectedEnd func(error))
- type Address
- func (this Address) Get() gonet.Addr
- func (this Address) IsEqualTo(other any) bool
- func (this Address) IsZero() bool
- func (this Address) Listen() (gonet.Listener, error)
- func (this Address) MarshalText() (text []byte, err error)
- func (this *Address) Set(text string) error
- func (this Address) String() string
- func (this *Address) UnmarshalText(text []byte) error
- type CloseWriterConn
- type Host
- func (this Host) Clone() Host
- func (this Host) IsEqualTo(other any) bool
- func (this Host) IsZero() bool
- func (this Host) MarshalText() ([]byte, error)
- func (this *Host) Set(in string) error
- func (this *Host) SetNetAddr(in gonet.Addr) error
- func (this Host) String() string
- func (this *Host) UnmarshalText(in []byte) error
- func (this Host) Validate() error
- func (this Host) WithPort(port uint16) (HostPort, error)
- type HostPort
- func (this HostPort) Clone() HostPort
- func (this HostPort) IsEqualTo(other any) bool
- func (this HostPort) IsZero() bool
- func (this HostPort) MarshalText() ([]byte, error)
- func (this *HostPort) Set(in string) error
- func (this HostPort) String() string
- func (this *HostPort) UnmarshalText(in []byte) error
- func (this HostPort) Validate() error
- type NamedPipe
- type NetAddresses
- type Purpose
- func (this Purpose) Clone() Purpose
- func (this Purpose) IsEqualTo(other any) bool
- func (this Purpose) IsZero() bool
- func (this Purpose) MarshalText() ([]byte, error)
- func (this *Purpose) Set(in string) error
- func (this Purpose) String() string
- func (this *Purpose) UnmarshalText(in []byte) error
- func (this Purpose) Validate() error
- type Remote
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIllegalPurpose = errors.Config.Newf("illegal purpose")
)
View Source
var (
ErrNotifyClosedUnsupported = errors.Network.Newf("notify closed is not supported for this connection")
)
Functions ¶
func AsListener ¶ added in v0.4.0
func ConnectToNamedPipe ¶ added in v0.4.0
func NewNamedPipeId ¶ added in v0.4.0
func NotifyClosed ¶ added in v0.4.0
Types ¶
type Address ¶ added in v0.5.0
type Address struct {
// contains filtered or unexported fields
}
func MustNewAddress ¶ added in v0.5.0
func NewAddress ¶ added in v0.5.0
func (Address) MarshalText ¶ added in v0.5.0
func (*Address) UnmarshalText ¶ added in v0.5.0
type CloseWriterConn ¶ added in v0.4.0
type CloseWriterConn interface { gonet.Conn sys.CloseWriter }
func AsCloseWriterConn ¶ added in v0.4.0
func AsCloseWriterConn(conn gonet.Conn) CloseWriterConn
type Host ¶
func MustNewHost ¶ added in v0.4.0
func (Host) MarshalText ¶
func (*Host) UnmarshalText ¶
type HostPort ¶ added in v0.4.0
func MustNewHostPort ¶ added in v0.4.0
func NewHostPort ¶ added in v0.4.0
func (HostPort) MarshalText ¶ added in v0.4.0
func (*HostPort) UnmarshalText ¶ added in v0.4.0
type NamedPipe ¶ added in v0.4.0
type NamedPipe interface { gonet.Listener AcceptConn() (CloseWriterConn, error) Path() string }
func AsNamedPipe ¶ added in v0.4.0
func NewNamedPipe ¶ added in v0.4.0
type NetAddresses ¶
type NetAddresses []Address
func (NetAddresses) IsEqualTo ¶
func (this NetAddresses) IsEqualTo(other any) bool
func (*NetAddresses) Trim ¶
func (this *NetAddresses) Trim() error
func (*NetAddresses) Validate ¶
func (this *NetAddresses) Validate() error
type Purpose ¶ added in v0.4.0
type Purpose string
func (Purpose) MarshalText ¶ added in v0.4.0
func (*Purpose) UnmarshalText ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.