plugin

package
v0.0.0-...-729b752 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 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.

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 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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

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