Documentation ¶
Overview ¶
Package bluehengev2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterBluehengeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBluehengeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterBluehengeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBluehengeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBluehengeServiceHandler ¶
func RegisterBluehengeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBluehengeServiceHandler registers the http handlers for service BluehengeService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBluehengeServiceHandlerClient ¶
func RegisterBluehengeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extBluehengev2.BluehengeServiceClient) error
RegisterBluehengeServiceHandlerClient registers the http handlers for service BluehengeService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extBluehengev2.BluehengeServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extBluehengev2.BluehengeServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extBluehengev2.BluehengeServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterBluehengeServiceHandlerFromEndpoint ¶
func RegisterBluehengeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBluehengeServiceHandlerFromEndpoint is same as RegisterBluehengeServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBluehengeServiceHandlerServer ¶
func RegisterBluehengeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extBluehengev2.BluehengeServiceServer) error
RegisterBluehengeServiceHandlerServer registers the http handlers for service BluehengeService to "mux". UnaryRPC :call BluehengeServiceServer 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 RegisterBluehengeServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
Types ¶
This section is empty.