简介
管理Acceptor以及具体的业务服务Service
结构
管理Service
对外的接口
public:
int AddService(google::protobuf::Service* service,
ServiceOwnership ownership);
int AddService(google::protobuf::Service* service,
ServiceOwnership ownership,
const butil::StringPiece& restful_mappings,
bool allow_default_url = false);
int AddService(google::protobuf::Service* service,
const ServiceOptions& options);
int RemoveService(google::protobuf::Service* service);
void ClearServices