Documentation ¶
Index ¶
- type PollerOptions
- type ProtocolOptions
- type RetryOptions
- type Tunnel
- func (l *Tunnel) Close() error
- func (l *Tunnel) ID() string
- func (l *Tunnel) Keep(open func() error)
- func (l *Tunnel) Pipe(pipe io.ReadWriteCloser)
- func (l *Tunnel) Poll()
- func (l *Tunnel) Read(data []byte) (int, error)
- func (l *Tunnel) SetReadTimeout(t time.Duration) error
- func (l *Tunnel) Start() (err error)
- func (l *Tunnel) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PollerOptions ¶
type ProtocolOptions ¶
type RetryOptions ¶
type Tunnel ¶
type Tunnel struct { Id string `json:"id,omitempty" xorm:"pk"` //ID Name string `json:"name,omitempty"` //名称 Description string `json:"description,omitempty"` //说明 Heartbeat string `json:"heartbeat,omitempty"` //心跳包 //协议 ProtocolName string `json:"protocol_name,omitempty"` ProtocolOptions types.Options `json:"protocol_options,omitempty"` Disabled bool `json:"disabled"` Created time.Time `json:"created" xorm:"created"` //创建时间 Status string `json:"status,omitempty" xorm:"-"` //状态 Running bool `json:"-" xorm:"-"` Closed bool `json:"-" xorm:"-"` Conn connect.Conn `json:"-" xorm:"-"` Adapter protocol.Adapter `json:"-" xorm:"-"` // contains filtered or unexported fields }
func (*Tunnel) Pipe ¶
func (l *Tunnel) Pipe(pipe io.ReadWriteCloser)
Click to show internal directories.
Click to hide internal directories.