v1

package
v0.0.0-...-cc49536 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 12 Imported by: 5

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCatalogServiceHandler

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

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

func RegisterCatalogServiceHandlerClient

func RegisterCatalogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CatalogServiceClient) error

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

func RegisterCatalogServiceHandlerFromEndpoint

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

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

func RegisterCatalogServiceHandlerServer

func RegisterCatalogServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CatalogServiceServer) error

RegisterCatalogServiceHandlerServer registers the http handlers for service CatalogService to "mux". UnaryRPC :call CatalogServiceServer 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 RegisterCatalogServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterRegistrationServiceHandler

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

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

func RegisterRegistrationServiceHandlerClient

func RegisterRegistrationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RegistrationServiceClient) error

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

func RegisterRegistrationServiceHandlerFromEndpoint

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

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

func RegisterRegistrationServiceHandlerServer

func RegisterRegistrationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RegistrationServiceServer) error

RegisterRegistrationServiceHandlerServer registers the http handlers for service RegistrationService to "mux". UnaryRPC :call RegistrationServiceServer 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 RegisterRegistrationServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterSkillServiceHandler

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

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

func RegisterSkillServiceHandlerClient

func RegisterSkillServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SkillServiceClient) error

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

func RegisterSkillServiceHandlerFromEndpoint

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

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

func RegisterSkillServiceHandlerServer

func RegisterSkillServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SkillServiceServer) error

RegisterSkillServiceHandlerServer registers the http handlers for service SkillService to "mux". UnaryRPC :call SkillServiceServer 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 RegisterSkillServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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