Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterHistoryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterHistoryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.HistoryClient) error
- func RegisterHistoryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterHistoryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.HistoryServer) error
- func RegisterResourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterResourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ResourceClient) error
- func RegisterResourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterResourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ResourceServer) error
- func RegisterScheduleHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterScheduleHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ScheduleClient) error
- func RegisterScheduleHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterScheduleHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ScheduleServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHistoryHandler ¶
func RegisterHistoryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterHistoryHandler registers the http handlers for service History to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterHistoryHandlerClient ¶
func RegisterHistoryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.HistoryClient) error
RegisterHistoryHandlerClient registers the http handlers for service History to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.HistoryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.HistoryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.HistoryClient" to call the correct interceptors.
func RegisterHistoryHandlerFromEndpoint ¶
func RegisterHistoryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterHistoryHandlerFromEndpoint is same as RegisterHistoryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterHistoryHandlerServer ¶
func RegisterHistoryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.HistoryServer) error
RegisterHistoryHandlerServer registers the http handlers for service History to "mux". UnaryRPC :call HistoryServer 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 RegisterHistoryHandlerFromEndpoint instead.
func RegisterResourceHandler ¶
func RegisterResourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterResourceHandler registers the http handlers for service Resource to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterResourceHandlerClient ¶
func RegisterResourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ResourceClient) error
RegisterResourceHandlerClient registers the http handlers for service Resource to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.ResourceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.ResourceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.ResourceClient" to call the correct interceptors.
func RegisterResourceHandlerFromEndpoint ¶
func RegisterResourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterResourceHandlerFromEndpoint is same as RegisterResourceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterResourceHandlerServer ¶
func RegisterResourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ResourceServer) error
RegisterResourceHandlerServer registers the http handlers for service Resource to "mux". UnaryRPC :call ResourceServer 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 RegisterResourceHandlerFromEndpoint instead.
func RegisterScheduleHandler ¶
func RegisterScheduleHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterScheduleHandler registers the http handlers for service Schedule to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterScheduleHandlerClient ¶
func RegisterScheduleHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ScheduleClient) error
RegisterScheduleHandlerClient registers the http handlers for service Schedule to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.ScheduleClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.ScheduleClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.ScheduleClient" to call the correct interceptors.
func RegisterScheduleHandlerFromEndpoint ¶
func RegisterScheduleHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterScheduleHandlerFromEndpoint is same as RegisterScheduleHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterScheduleHandlerServer ¶
func RegisterScheduleHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ScheduleServer) error
RegisterScheduleHandlerServer registers the http handlers for service Schedule to "mux". UnaryRPC :call ScheduleServer 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 RegisterScheduleHandlerFromEndpoint instead.
Types ¶
This section is empty.