Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Concurrency int ListenAddress string MaxBodySize int MaxIdleTime time.Duration Protocol Protocol ExternalAddrs []string }
Config
type Gateway ¶
type Gateway struct { gateway.ConnectHandler gateway.MessageHandler gateway.CloseHandler // contains filtered or unexported fields }
Gateway
func (*Gateway) Run ¶
func (g *Gateway) Run()
Run is blocking and runs the server endless loop until a non-temporary error happens
func (*Gateway) Start ¶
func (g *Gateway) Start()
Start is non-blocking and call the Run function in background
func (*Gateway) TotalConnections ¶ added in v0.0.49
Source Files ¶
Click to show internal directories.
Click to hide internal directories.