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.
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 ¶
- func RegisterDataSourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDataSourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.DataSourceClient) error
- func RegisterDataSourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDataSourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.DataSourceServer) error
- func RegisterEventHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEventHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.EventClient) error
- func RegisterEventHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEventHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.EventServer) error
- func RegisterLogHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLogHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.LogClient) error
- func RegisterLogHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLogHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.LogServer) error
- func RegisterMetricHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMetricHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.MetricClient) error
- func RegisterMetricHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMetricHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.MetricServer) error
- func RegisterWebhookHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWebhookHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.WebhookClient) error
- func RegisterWebhookHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWebhookHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.WebhookServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 RegisterEventHandler ¶
RegisterEventHandler registers the http handlers for service Event to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEventHandlerClient ¶
func RegisterEventHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.EventClient) error
RegisterEventHandlerClient registers the http handlers for service Event to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.EventClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.EventClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.EventClient" to call the correct interceptors.
func RegisterEventHandlerFromEndpoint ¶
func RegisterEventHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEventHandlerFromEndpoint is same as RegisterEventHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEventHandlerServer ¶
func RegisterEventHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.EventServer) error
RegisterEventHandlerServer registers the http handlers for service Event to "mux". UnaryRPC :call EventServer 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 RegisterEventHandlerFromEndpoint instead.
func RegisterLogHandler ¶
RegisterLogHandler registers the http handlers for service Log to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLogHandlerClient ¶
func RegisterLogHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.LogClient) error
RegisterLogHandlerClient registers the http handlers for service Log to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.LogClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.LogClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.LogClient" to call the correct interceptors.
func RegisterLogHandlerFromEndpoint ¶
func RegisterLogHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLogHandlerFromEndpoint is same as RegisterLogHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLogHandlerServer ¶
func RegisterLogHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.LogServer) error
RegisterLogHandlerServer registers the http handlers for service Log to "mux". UnaryRPC :call LogServer 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 RegisterLogHandlerFromEndpoint instead.
func RegisterMetricHandler ¶
RegisterMetricHandler registers the http handlers for service Metric to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMetricHandlerClient ¶
func RegisterMetricHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.MetricClient) error
RegisterMetricHandlerClient registers the http handlers for service Metric to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.MetricClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.MetricClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.MetricClient" to call the correct interceptors.
func RegisterMetricHandlerFromEndpoint ¶
func RegisterMetricHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMetricHandlerFromEndpoint is same as RegisterMetricHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMetricHandlerServer ¶
func RegisterMetricHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.MetricServer) error
RegisterMetricHandlerServer registers the http handlers for service Metric to "mux". UnaryRPC :call MetricServer 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 RegisterMetricHandlerFromEndpoint instead.
func RegisterWebhookHandler ¶
func RegisterWebhookHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWebhookHandler registers the http handlers for service Webhook to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWebhookHandlerClient ¶
func RegisterWebhookHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.WebhookClient) error
RegisterWebhookHandlerClient registers the http handlers for service Webhook to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extPlugin.WebhookClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extPlugin.WebhookClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extPlugin.WebhookClient" to call the correct interceptors.
func RegisterWebhookHandlerFromEndpoint ¶
func RegisterWebhookHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWebhookHandlerFromEndpoint is same as RegisterWebhookHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWebhookHandlerServer ¶
func RegisterWebhookHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.WebhookServer) error
RegisterWebhookHandlerServer registers the http handlers for service Webhook to "mux". UnaryRPC :call WebhookServer 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 RegisterWebhookHandlerFromEndpoint instead.
Types ¶
This section is empty.