Start 启动服务器
()
| 252 | |
| 253 | // Start 启动服务器 |
| 254 | func (s *HTTPBridgeServer) Start() error { |
| 255 | fmt.Printf("HTTP Bridge Server listening on %s\n", s.server.Addr) |
| 256 | return s.server.ListenAndServe() |
| 257 | } |
| 258 | |
| 259 | // StartAsync 异步启动服务器 |
| 260 | func (s *HTTPBridgeServer) StartAsync() error { |