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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountCollectorHandler

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

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

func RegisterAccountCollectorHandlerClient

func RegisterAccountCollectorHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.AccountCollectorClient) error

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

func RegisterAccountCollectorHandlerFromEndpoint

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

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

func RegisterAccountCollectorHandlerServer

func RegisterAccountCollectorHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.AccountCollectorServer) error

RegisterAccountCollectorHandlerServer registers the http handlers for service AccountCollector to "mux". UnaryRPC :call AccountCollectorServer 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 RegisterAccountCollectorHandlerFromEndpoint instead.

func RegisterExternalAuthHandler

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

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

func RegisterExternalAuthHandlerClient

func RegisterExternalAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extPlugin.ExternalAuthClient) error

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

func RegisterExternalAuthHandlerFromEndpoint

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

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

func RegisterExternalAuthHandlerServer

func RegisterExternalAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extPlugin.ExternalAuthServer) error

RegisterExternalAuthHandlerServer registers the http handlers for service ExternalAuth to "mux". UnaryRPC :call ExternalAuthServer 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 RegisterExternalAuthHandlerFromEndpoint instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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