|
|
@ -40,6 +40,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace grpc { |
|
|
|
namespace grpc { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ServerBuilder; |
|
|
|
class ServerInitializer; |
|
|
|
class ServerInitializer; |
|
|
|
class ChannelArguments; |
|
|
|
class ChannelArguments; |
|
|
|
|
|
|
|
|
|
|
@ -48,6 +49,9 @@ class ServerBuilderPlugin { |
|
|
|
virtual ~ServerBuilderPlugin() {} |
|
|
|
virtual ~ServerBuilderPlugin() {} |
|
|
|
virtual grpc::string name() = 0; |
|
|
|
virtual grpc::string name() = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// UpdateServerBuilder will be called at the beginning of BuildAndStart.
|
|
|
|
|
|
|
|
virtual void UpdateServerBuilder(ServerBuilder* builder) {} |
|
|
|
|
|
|
|
|
|
|
|
// InitServer will be called in ServerBuilder::BuildAndStart(), after the
|
|
|
|
// InitServer will be called in ServerBuilder::BuildAndStart(), after the
|
|
|
|
// Server instance is created.
|
|
|
|
// Server instance is created.
|
|
|
|
virtual void InitServer(ServerInitializer* si) = 0; |
|
|
|
virtual void InitServer(ServerInitializer* si) = 0; |
|
|
|