v1

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

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNotificationHandler

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

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

func RegisterNotificationHandlerClient

func RegisterNotificationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.NotificationClient) error

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

func RegisterNotificationHandlerFromEndpoint

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

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

func RegisterNotificationHandlerServer

func RegisterNotificationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.NotificationServer) error

RegisterNotificationHandlerServer registers the http handlers for service Notification to "mux". UnaryRPC :call NotificationServer 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 RegisterNotificationHandlerFromEndpoint instead.

func RegisterProjectChannelHandler

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

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

func RegisterProjectChannelHandlerClient

func RegisterProjectChannelHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ProjectChannelClient) error

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

func RegisterProjectChannelHandlerFromEndpoint

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

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

func RegisterProjectChannelHandlerServer

func RegisterProjectChannelHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ProjectChannelServer) error

RegisterProjectChannelHandlerServer registers the http handlers for service ProjectChannel to "mux". UnaryRPC :call ProjectChannelServer 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 RegisterProjectChannelHandlerFromEndpoint instead.

func RegisterProtocolHandler

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

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

func RegisterProtocolHandlerClient

func RegisterProtocolHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ProtocolClient) error

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

func RegisterProtocolHandlerFromEndpoint

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

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

func RegisterProtocolHandlerServer

func RegisterProtocolHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ProtocolServer) error

RegisterProtocolHandlerServer registers the http handlers for service Protocol to "mux". UnaryRPC :call ProtocolServer 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 RegisterProtocolHandlerFromEndpoint instead.

func RegisterUserChannelHandler

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

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

func RegisterUserChannelHandlerClient

func RegisterUserChannelHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.UserChannelClient) error

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

func RegisterUserChannelHandlerFromEndpoint

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

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

func RegisterUserChannelHandlerServer

func RegisterUserChannelHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.UserChannelServer) error

RegisterUserChannelHandlerServer registers the http handlers for service UserChannel to "mux". UnaryRPC :call UserChannelServer 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 RegisterUserChannelHandlerFromEndpoint instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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