Documentation ¶
Overview ¶
Package discoveryenginepb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package discoveryenginepb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterDataStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDataStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterDataStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDataStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterEngineServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEngineServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterEngineServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEngineServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDataStoreServiceHandler ¶
func RegisterDataStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDataStoreServiceHandler registers the http handlers for service DataStoreService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDataStoreServiceHandlerClient ¶
func RegisterDataStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extDiscoveryenginepb.DataStoreServiceClient) error
RegisterDataStoreServiceHandlerClient registers the http handlers for service DataStoreService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extDiscoveryenginepb.DataStoreServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extDiscoveryenginepb.DataStoreServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extDiscoveryenginepb.DataStoreServiceClient" to call the correct interceptors.
func RegisterDataStoreServiceHandlerFromEndpoint ¶
func RegisterDataStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDataStoreServiceHandlerFromEndpoint is same as RegisterDataStoreServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDataStoreServiceHandlerServer ¶
func RegisterDataStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extDiscoveryenginepb.DataStoreServiceServer) error
RegisterDataStoreServiceHandlerServer registers the http handlers for service DataStoreService to "mux". UnaryRPC :call DataStoreServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDataStoreServiceHandlerFromEndpoint instead.
func RegisterEngineServiceHandler ¶
func RegisterEngineServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterEngineServiceHandler registers the http handlers for service EngineService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEngineServiceHandlerClient ¶
func RegisterEngineServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extDiscoveryenginepb.EngineServiceClient) error
RegisterEngineServiceHandlerClient registers the http handlers for service EngineService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extDiscoveryenginepb.EngineServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extDiscoveryenginepb.EngineServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extDiscoveryenginepb.EngineServiceClient" to call the correct interceptors.
func RegisterEngineServiceHandlerFromEndpoint ¶
func RegisterEngineServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEngineServiceHandlerFromEndpoint is same as RegisterEngineServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEngineServiceHandlerServer ¶
func RegisterEngineServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extDiscoveryenginepb.EngineServiceServer) error
RegisterEngineServiceHandlerServer registers the http handlers for service EngineService to "mux". UnaryRPC :call EngineServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEngineServiceHandlerFromEndpoint instead.
Types ¶
This section is empty.