realgun

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength = errors.New("invalid length")
)

Functions

This section is empty.

Types

type ChainedClosable

type ChainedClosable []io.Closer

func (ChainedClosable) Close

func (cc ChainedClosable) Close() error

Close implements io.Closer.Close().

type Client

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

func NewGunClient

func NewGunClient(config *Config) *Client

func (*Client) DialConn

func (cli *Client) DialConn() (net.Conn, error)

type Config

type Config struct {
	RemoteAddr  string
	ServerName  string
	ServiceName string
	Cleartext   bool
	// contains filtered or unexported fields
}

type GunConn

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

func (*GunConn) Close

func (g *GunConn) Close() error

func (*GunConn) LocalAddr

func (g *GunConn) LocalAddr() net.Addr

func (*GunConn) Read

func (g *GunConn) Read(b []byte) (n int, err error)

func (*GunConn) RemoteAddr

func (g *GunConn) RemoteAddr() net.Addr

func (*GunConn) SetDeadline

func (g *GunConn) SetDeadline(t time.Time) error

func (*GunConn) SetReadDeadline

func (g *GunConn) SetReadDeadline(t time.Time) error

func (*GunConn) SetWriteDeadline

func (g *GunConn) SetWriteDeadline(t time.Time) error

func (*GunConn) Write

func (g *GunConn) 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