plugin

package
v0.0.0-...-ae3c806 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package plugin is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package plugin is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package plugin is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCostHandler

func RegisterCostHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCostHandler registers the http handlers for service Cost to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCostHandlerClient

func RegisterCostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.CostClient) error

RegisterCostHandlerClient registers the http handlers for service Cost to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.CostClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.CostClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.CostClient" to call the correct interceptors.

func RegisterCostHandlerFromEndpoint

func RegisterCostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCostHandlerFromEndpoint is same as RegisterCostHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCostHandlerServer

func RegisterCostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.CostServer) error

RegisterCostHandlerServer registers the http handlers for service Cost to "mux". UnaryRPC :call CostServer 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 RegisterCostHandlerFromEndpoint instead.

func RegisterDataSourceHandler

func RegisterDataSourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDataSourceHandler registers the http handlers for service DataSource to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDataSourceHandlerClient

func RegisterDataSourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.DataSourceClient) error

RegisterDataSourceHandlerClient registers the http handlers for service DataSource to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.DataSourceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.DataSourceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.DataSourceClient" to call the correct interceptors.

func RegisterDataSourceHandlerFromEndpoint

func RegisterDataSourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDataSourceHandlerFromEndpoint is same as RegisterDataSourceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDataSourceHandlerServer

func RegisterDataSourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.DataSourceServer) error

RegisterDataSourceHandlerServer registers the http handlers for service DataSource to "mux". UnaryRPC :call DataSourceServer 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 RegisterDataSourceHandlerFromEndpoint instead.

func RegisterJobHandler

func RegisterJobHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterJobHandler registers the http handlers for service Job to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterJobHandlerClient

func RegisterJobHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.JobClient) error

RegisterJobHandlerClient registers the http handlers for service Job to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.JobClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.JobClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.JobClient" to call the correct interceptors.

func RegisterJobHandlerFromEndpoint

func RegisterJobHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterJobHandlerFromEndpoint is same as RegisterJobHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterJobHandlerServer

func RegisterJobHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.JobServer) error

RegisterJobHandlerServer registers the http handlers for service Job to "mux". UnaryRPC :call JobServer 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 RegisterJobHandlerFromEndpoint instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL