Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateHandle ¶ added in v0.6.10
Types ¶
type Config ¶
type Config struct { Concurrency int ListenAddress string MaxBodySize int MaxIdleTime time.Duration Protocol gateway.Protocol ExternalAddrs []string ProxyEnabled bool }
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) SetProxy ¶ added in v0.6.9
func (g *Gateway) SetProxy( method, path string, handle gateway.ProxyHandle, )
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.