(privateKeyPath string, masterKey []byte, listenAddr string)
| 91 | } |
| 92 | |
| 93 | func createDirectServer(privateKeyPath string, masterKey []byte, listenAddr string) (server *rpc.Server, err error) { |
| 94 | if listenAddr == "" { |
| 95 | return nil, nil |
| 96 | } |
| 97 | server = rpc.NewServer() |
| 98 | err = server.InitRPCServer(listenAddr, privateKeyPath, masterKey) |
| 99 | return |
| 100 | } |
| 101 | |
| 102 | func initMetrics() { |
| 103 | if conf.GConf != nil { |
no test coverage detected