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 gateway.Protocol ExternalAddrs []string CustomRouter *router.Router }
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.