clients

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSL

type AWSL struct {
	ServerHost string
	ServerPort string
	URI        string
	Auth       string
	// contains filtered or unexported fields
}

AWSL AWSL

func NewAWSL

func NewAWSL(id int, conf model.Out) *AWSL

NewAWSL NewAWSL

func (*AWSL) Dial

func (c *AWSL) Dial(addr model.ANetAddr) (net.Conn, error)

Dial Dial

func (*AWSL) IDTag

func (c *AWSL) IDTag() (int, string)

IDTag id tag

func (*AWSL) Verify

func (c *AWSL) Verify(conn net.Conn) error

Verify Verify

type Client

type Client interface {
	Dial(model.ANetAddr) (net.Conn, error)
	Verify(net.Conn) error
	IDTag() (int, string)
}

Client listen and handel incomming

func NewClients

func NewClients(conf []model.Out) []Client

NewClients new clients

type DirectOut

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

DirectOut DirectOut

func (DirectOut) Dial

func (c DirectOut) Dial(addr model.ANetAddr) (net.Conn, error)

Dial Dial

func (DirectOut) IDTag

func (c DirectOut) IDTag() (int, string)

IDTag id tag

func (DirectOut) Verify

func (c DirectOut) Verify(_ net.Conn) error

Verify Verify

type H2C

type H2C struct {
	ServerHost string
	ServerPort string
	URI        string

	Auth   *http.Cookie
	Client *http.Client
	// contains filtered or unexported fields
}

H2C H2C

func NewH2C

func NewH2C(id int, conf model.Out) *H2C

NewH2C NewH2C

func (*H2C) Dial

func (c *H2C) Dial(addr model.ANetAddr) (net.Conn, error)

Dial Dial

func (*H2C) IDTag

func (c *H2C) IDTag() (int, string)

IDTag id tag

func (*H2C) Verify

func (c *H2C) Verify(conn net.Conn) error

Verify Verify

type TCP

type TCP struct {
	ServerHost string
	ServerPort string
	Auth       string

	Dialer *dialer.MultiAddr
	// contains filtered or unexported fields
}

TCP tcp

func NewTCP

func NewTCP(id int, conf model.Out) *TCP

NewTCP NewTCP

func (*TCP) Dial

func (c *TCP) Dial(addr model.ANetAddr) (net.Conn, error)

Dial dial

func (*TCP) IDTag

func (c *TCP) IDTag() (int, string)

IDTag id tag

func (*TCP) Verify

func (c *TCP) Verify(conn net.Conn) error

Verify verify

Jump to

Keyboard shortcuts

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