v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 11 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.

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 RegisterCollectionServiceHandler

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

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

func RegisterCollectionServiceHandlerClient

func RegisterCollectionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CollectionServiceClient) error

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

func RegisterCollectionServiceHandlerFromEndpoint

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

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

func RegisterCollectionServiceHandlerServer

func RegisterCollectionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CollectionServiceServer) error

RegisterCollectionServiceHandlerServer registers the http handlers for service CollectionService to "mux". UnaryRPC :call CollectionServiceServer 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 RegisterCollectionServiceHandlerFromEndpoint instead.

func RegisterEndpointServiceHandler

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

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

func RegisterEndpointServiceHandlerClient

func RegisterEndpointServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EndpointServiceClient) error

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

func RegisterEndpointServiceHandlerFromEndpoint

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

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

func RegisterEndpointServiceHandlerServer

func RegisterEndpointServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EndpointServiceServer) error

RegisterEndpointServiceHandlerServer registers the http handlers for service EndpointService to "mux". UnaryRPC :call EndpointServiceServer 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 RegisterEndpointServiceHandlerFromEndpoint instead.

func RegisterObjectGroupServiceHandler

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

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

func RegisterObjectGroupServiceHandlerClient

func RegisterObjectGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectGroupServiceClient) error

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

func RegisterObjectGroupServiceHandlerFromEndpoint

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

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

func RegisterObjectGroupServiceHandlerServer

func RegisterObjectGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ObjectGroupServiceServer) error

RegisterObjectGroupServiceHandlerServer registers the http handlers for service ObjectGroupService to "mux". UnaryRPC :call ObjectGroupServiceServer 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 RegisterObjectGroupServiceHandlerFromEndpoint instead.

func RegisterObjectServiceHandler

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

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

func RegisterObjectServiceHandlerClient

func RegisterObjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectServiceClient) error

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

func RegisterObjectServiceHandlerFromEndpoint

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

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

func RegisterObjectServiceHandlerServer

func RegisterObjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ObjectServiceServer) error

RegisterObjectServiceHandlerServer registers the http handlers for service ObjectService to "mux". UnaryRPC :call ObjectServiceServer 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 RegisterObjectServiceHandlerFromEndpoint instead.

func RegisterProjectServiceHandler

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

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

func RegisterProjectServiceHandlerClient

func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error

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

func RegisterProjectServiceHandlerFromEndpoint

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

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

func RegisterProjectServiceHandlerServer

func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServiceServer) error

RegisterProjectServiceHandlerServer registers the http handlers for service ProjectService to "mux". UnaryRPC :call ProjectServiceServer 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 RegisterProjectServiceHandlerFromEndpoint instead.

func RegisterResourceInfoServiceHandler

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

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

func RegisterResourceInfoServiceHandlerClient

func RegisterResourceInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceInfoServiceClient) error

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

func RegisterResourceInfoServiceHandlerFromEndpoint

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

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

func RegisterResourceInfoServiceHandlerServer

func RegisterResourceInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceInfoServiceServer) error

RegisterResourceInfoServiceHandlerServer registers the http handlers for service ResourceInfoService to "mux". UnaryRPC :call ResourceInfoServiceServer 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 RegisterResourceInfoServiceHandlerFromEndpoint instead.

func RegisterServiceAccountServiceHandler

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

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

func RegisterServiceAccountServiceHandlerClient

func RegisterServiceAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceAccountServiceClient) error

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

func RegisterServiceAccountServiceHandlerFromEndpoint

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

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

func RegisterServiceAccountServiceHandlerServer

func RegisterServiceAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceAccountServiceServer) error

RegisterServiceAccountServiceHandlerServer registers the http handlers for service ServiceAccountService to "mux". UnaryRPC :call ServiceAccountServiceServer 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 RegisterServiceAccountServiceHandlerFromEndpoint instead.

func RegisterStorageInfoServiceHandler

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

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

func RegisterStorageInfoServiceHandlerClient

func RegisterStorageInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StorageInfoServiceClient) error

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

func RegisterStorageInfoServiceHandlerFromEndpoint

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

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

func RegisterStorageInfoServiceHandlerServer

func RegisterStorageInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StorageInfoServiceServer) error

RegisterStorageInfoServiceHandlerServer registers the http handlers for service StorageInfoService to "mux". UnaryRPC :call StorageInfoServiceServer 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 RegisterStorageInfoServiceHandlerFromEndpoint instead.

func RegisterUserServiceHandler

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

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

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

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

func RegisterUserServiceHandlerFromEndpoint

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

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

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer 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 RegisterUserServiceHandlerFromEndpoint instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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