Documentation ¶
Overview ¶
Client stands for a client which send requests to remote server, client can clone at request level, since request is not related to the underlining tcp packet sequence, so more flexible.
Deliver stands for a remote host to send traffic to ¶
Sender writes request bytes to remote connections it can maintain multiple connections concurrently and receive bytes from the chan C.
Index ¶
Constants ¶
View Source
const ( TBinaryProtocol = iota TCompactProtocol )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type Deliver ¶
type Deliver struct { Config *DeliverConfig Stat *Stat Clients []*Client Ctx context.Context C chan []byte }
func NewDeliver ¶
func NewDeliver(ctx context.Context, config *DeliverConfig) (*Deliver, error)
type DeliverConfig ¶
type LongConnSender ¶
type LongConnSender struct { RemoteAddr string ConnNum int Remotes []net.Conn ConnState []bool Ctx context.Context C chan []byte Stat *Stat }
func (*LongConnSender) Data ¶
func (s *LongConnSender) Data() chan []byte
type Sender ¶
type Sender interface { Data() chan []byte // contains filtered or unexported methods }
func NewLongConnSender ¶
Click to show internal directories.
Click to hide internal directories.