mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-20 06:54:33 +08:00
add 2 options to control httpinvoke and jsonrpc 2.0 services
This commit is contained in:
@@ -59,10 +59,12 @@ var (
|
||||
|
||||
// Server is rpcx server that use TCP or UDP.
|
||||
type Server struct {
|
||||
ln net.Listener
|
||||
readTimeout time.Duration
|
||||
writeTimeout time.Duration
|
||||
gatewayHTTPServer *http.Server
|
||||
ln net.Listener
|
||||
readTimeout time.Duration
|
||||
writeTimeout time.Duration
|
||||
gatewayHTTPServer *http.Server
|
||||
DisableHTTPGateway bool // should disable http invoke or not.
|
||||
DisableJSONRPC bool // should disable json rpc or not.
|
||||
|
||||
serviceMapMu sync.RWMutex
|
||||
serviceMap map[string]*service
|
||||
|
Reference in New Issue
Block a user