local

package
v0.0.0-...-995ed43 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	// contains filtered or unexported fields
}

func NewAddr

func NewAddr(s string) *Addr

func (*Addr) Network

func (a *Addr) Network() string

func (*Addr) String

func (a *Addr) String() string

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func NewListener

func NewListener() *Listener

func (*Listener) Accept

func (lis *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (lis *Listener) Addr() net.Addr

func (*Listener) Close

func (lis *Listener) Close() error

type LocalConnection

type LocalConnection struct {
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(in io.Reader, out io.Writer, listener *Listener) *LocalConnection

func (*LocalConnection) Close

func (s *LocalConnection) Close() error

func (*LocalConnection) LocalAddr

func (s *LocalConnection) LocalAddr() net.Addr

func (*LocalConnection) Read

func (s *LocalConnection) Read(b []byte) (n int, err error)

func (*LocalConnection) RemoteAddr

func (s *LocalConnection) RemoteAddr() net.Addr

func (*LocalConnection) SetDeadline

func (s *LocalConnection) SetDeadline(t time.Time) error

func (*LocalConnection) SetReadDeadline

func (s *LocalConnection) SetReadDeadline(t time.Time) error

func (*LocalConnection) SetWriteDeadline

func (s *LocalConnection) SetWriteDeadline(t time.Time) error

func (*LocalConnection) Write

func (s *LocalConnection) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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