Documentation ¶
Index ¶
- type Config
- type Tunnel
- func (t *Tunnel) Addr() []string
- func (t *Tunnel) OnClosed(c gnet.Conn, err error) (action gnet.Action)
- func (t *Tunnel) OnInitComplete(server gnet.Server) (action gnet.Action)
- func (t *Tunnel) OnOpened(c gnet.Conn) (out []byte, action gnet.Action)
- func (t *Tunnel) OnShutdown(server gnet.Server)
- func (t *Tunnel) PreWrite()
- func (t *Tunnel) React(frame []byte, c gnet.Conn) (out []byte, action gnet.Action)
- func (t *Tunnel) Run()
- func (t *Tunnel) Shutdown()
- func (t *Tunnel) Start()
- func (t *Tunnel) Tick() (delay time.Duration, action gnet.Action)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerID string Concurrency int ListenAddress string MaxBodySize int ExternalAddrs []string }
Config
type Tunnel ¶
type Tunnel struct { tunnel.MessageHandler // contains filtered or unexported fields }
Tunnel
func (*Tunnel) OnInitComplete ¶ added in v0.5.20
func (*Tunnel) OnShutdown ¶ added in v0.5.20
Click to show internal directories.
Click to hide internal directories.